Automattic / Automattic/VIP-Coding-Standards
Account for upcoming change in WP 5.7 / script tag use
- Langage dominant
- PHP
- Étoiles
- 261
- Forks
- 44
- Merge moyen
- 19 min
- PR mergées (30 j)
- 1
Description
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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Examinez les sniffs existants qui inspectent le HTML inline à la recherche de balises script, en utilisant les PRs liés de WPCS et de WordPress Core comme références de départ et exemples de code. Vérifiez qu’ils détectent toujours les motifs concernés après la modification de WP 5.7 ; la tâche est terminée lorsque les sniffs concernés gèrent correctement le nouveau style.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100