Skip to content

Commit 552178a

Browse files
author
gziolo
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55402 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 365efb1 commit 552178a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class WP_HTML_Tag_Processor {
274274
* @since 6.2.0
275275
* @var string
276276
*/
277-
private $html;
277+
protected $html;
278278

279279
/**
280280
* The last query passed to next_tag().

0 commit comments

Comments
 (0)