Automattic / Automattic/VIP-Coding-Standards
Account for upcoming change in WP 5.7 / script tag use
- Vorherrschende Sprache
- PHP
- Sterne
- 261
- Forks
- 44
- Ø Merge
- 19 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Überprüfe die vorhandenen Sniffs, die Inline-HTML auf Script-Tags untersuchen, und verwende dabei die verlinkten WPCS- und WordPress-Core-PRs als Ausgangsreferenzen und Codebeispiele. Prüfe, ob sie die relevanten Muster nach der Änderung in WP 5.7 weiterhin erkennen; abgeschlossen ist die Aufgabe, wenn die betroffenen Sniffs den neuen Stil korrekt behandeln.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100