From ee60151913bf179f5660c2ecc1b39f5ddf86d6a8 Mon Sep 17 00:00:00 2001 From: cbravobernal Date: Wed, 27 Nov 2024 09:57:15 +0000 Subject: [PATCH] HTML API: Recognize all uppercase tag names in tag processor. Fixes a missing "D" in the character list used by strspn to find tag openers, causing tags starting with D to be skipped by the tag processor in some circumstances. Follow-up to [58613]. Props jonsurrell, santosguillamot, wongjn, cbravobernal. Fixes #62522. Built from https://develop.svn.wordpress.org/trunk@59464 git-svn-id: http://core.svn.wordpress.org/trunk@58850 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-tag-processor.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php index e2632c80f6..39390621e8 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -1668,7 +1668,7 @@ class WP_HTML_Tag_Processor { * * @see https://html.spec.whatwg.org/#tag-open-state */ - if ( 1 !== strspn( $html, '!/?abcdefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ', $at + 1, 1 ) ) { + if ( 1 !== strspn( $html, '!/?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', $at + 1, 1 ) ) { ++$at; continue; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ca6c01fcb1..432b44f16d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59463'; +$wp_version = '6.8-alpha-59464'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.