VIP-Coding-Standards icon indicating copy to clipboard operation
VIP-Coding-Standards copied to clipboard

Account for upcoming change in WP 5.7 / script tag use

Open jrfnl opened this issue 5 years ago • 1 comments

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 <script> 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

jrfnl avatar Oct 23 '20 16:10 jrfnl

Related sniff in progress: https://github.com/Automattic/VIP-Coding-Standards/pull/623

rebeccahum avatar Apr 13 '21 16:04 rebeccahum