Automattic / Automattic/VIP-Coding-Standards
Account for upcoming change in WP 5.7 / script tag use
- Lingua principale
- PHP
- Stelle
- 261
- Fork
- 44
- Merge medio
- 19m
- PR unite (30g)
- 1
Descrizione
PR https://github.com/WordPress/WordPress-Coding-Standards/pull/1956 in WPCS refers to changes in WP Core which will remove the use of the `` HTML tag in PHP code.
Any existing sniff which looks at the content of inline HTML and takes the `<script>` tag into account will need to be reviewed to see if it can still detect what it is looking for with the "new" way of writing this type of code.
This PR to WP Core gives some good examples of the "new" way of writing this type of code and can be used to for code samples: https://github.com/WordPress/wordpress-develop/pull/498/files
This PR shows the new functionality which will be added to Core: https://github.com/WordPress/wordpress-develop/pull/591
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina gli sniffs esistenti che analizzano l’HTML inline alla ricerca di tag script, usando le PR collegati di WPCS e WordPress Core come riferimenti iniziali ed esempi di codice. Verifica che continuino a rilevare i pattern pertinenti dopo la modifica di WP 5.7; il lavoro è concluso quando gli sniffs interessati gestiscono correttamente il nuovo stile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100