HTML API: Ensure tag processor recognizes SCRIPT tag closers.

Address edge cases where SCRIPT tag closers were not detected and the processor remained paused on an incomplete token.

Developed in https://github.com/WordPress/wordpress-develop/pull/12184.

Props jonsurrell, dmsnell.
See #65372.

Built from https://develop.svn.wordpress.org/trunk@62509


git-svn-id: http://core.svn.wordpress.org/trunk@61790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
jonsurrell
2026-06-16 17:14:45 +00:00
parent 1fe530a211
commit 377437d2ee
2 changed files with 1 additions and 2 deletions
@@ -1619,7 +1619,6 @@ class WP_HTML_Tag_Processor {
( 'p' === $html[ $at + 4 ] || 'P' === $html[ $at + 4 ] ) &&
( 't' === $html[ $at + 5 ] || 'T' === $html[ $at + 5 ] )
) ) {
++$at;
continue;
}
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62508';
$wp_version = '7.1-alpha-62509';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.