From 582feb3ffb1d1d0253f67956b95c8cf4380e9537 Mon Sep 17 00:00:00 2001 From: gziolo Date: Wed, 22 Feb 2023 06:24:22 +0000 Subject: [PATCH] HTML API: Set $this->html to protected to support subclassing When the HTML API was introduced a number of fields were switched from private visibility to protected so that Gutenberg and other systems could more easily enhance the behaviors through subclassing. The $this->html property was overlooked but important for systems using the Tag Processor to stich HTML, specifically performing operations on innerHTML and innerText. Follow-up [55203]. Props dmsnell. See #57575. Built from https://develop.svn.wordpress.org/trunk@55402 git-svn-id: http://core.svn.wordpress.org/trunk@54935 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 31db41a3c8..42675ecd3c 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -274,7 +274,7 @@ class WP_HTML_Tag_Processor { * @since 6.2.0 * @var string */ - private $html; + protected $html; /** * The last query passed to next_tag(). diff --git a/wp-includes/version.php b/wp-includes/version.php index 8480b88283..a8ee8af1bd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55401'; +$wp_version = '6.2-beta3-55402'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.