From 1dbf1ddc5af88b3edc307af893cf3ee8332fd9fc Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Thu, 17 Oct 2024 17:48:19 +0000 Subject: [PATCH] HTML API: Ensure form closer tokens are reachable. Form tag closers have complicated conditions. There was a bug where the HTML Processor would not stop correctly on a FORM tag closer token. This changeset ensures that that token is reachable. Developed in https://github.com/WordPress/wordpress-develop/pull/7582 Discussed in https://core.trac.wordpress.org/ticket/61576 Follow-up to [58779]. Props jonsurrell. Fixes #61576. Built from https://develop.svn.wordpress.org/trunk@59248 git-svn-id: http://core.svn.wordpress.org/trunk@58640 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-processor.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index a3bcb57032..b91c244887 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -2433,6 +2433,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { } $this->state->stack_of_open_elements->remove_node( $node ); + return true; } else { /* * > If the stack of open elements does not have a form element in scope, diff --git a/wp-includes/version.php b/wp-includes/version.php index 80d31d7dce..8b9e5a0aa6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-beta3-59247'; +$wp_version = '6.7-beta3-59248'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.