From 8683a502a08c64346e8f30988eee171763de7a8c Mon Sep 17 00:00:00 2001 From: dmsnell Date: Sat, 8 Jun 2024 12:12:08 +0000 Subject: [PATCH] HTML API: Call `$this->is_tag_closer()` in HTML Processor. The HTML Processor had been calling the parent class `is_tag_closer()` method, but since visiting virtual nodes was introduced, it's important that all of the methods are called on the subclass. This patch fixes one issue identified where the parent method was called instead, and it fixes another case where the change from calling the parent method to the `$this` method was done improperly. Developed in https://github.com/WordPress/wordpress-develop/pull/6726 Discussed in https://core.trac.wordpress.org/ticket/61348 Props jonsurrell. See #61348. Follow-up to [58304]. Built from https://develop.svn.wordpress.org/trunk@58365 git-svn-id: http://core.svn.wordpress.org/trunk@57814 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-processor.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index 0511035607..528c222335 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -429,7 +429,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { continue; } - if ( ! $this::is_tag_closer() || $visit_closers ) { + if ( ! $this->is_tag_closer() || $visit_closers ) { return true; } } @@ -464,7 +464,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { continue; } - if ( ! parent::is_tag_closer() || $visit_closers ) { + if ( ! $this->is_tag_closer() || $visit_closers ) { return true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 969baf30ba..829fba1763 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta1-58364'; +$wp_version = '6.6-beta1-58365'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.