Skip to content

Commit 9e790aa

Browse files
committed
Remove tag processor visibility changes
1 parent b55a6a8 commit 9e790aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ class WP_HTML_Tag_Processor {
708708
* @since 6.2.0
709709
* @var WP_HTML_Attribute_Token[]
710710
*/
711-
protected $attributes = array();
711+
private $attributes = array();
712712

713713
/**
714714
* Tracks spans of duplicate attributes on a given tag, used for removing
@@ -718,7 +718,7 @@ class WP_HTML_Tag_Processor {
718718
*
719719
* @var (WP_HTML_Span[])[]|null
720720
*/
721-
protected $duplicate_attributes = null;
721+
private $duplicate_attributes = null;
722722

723723
/**
724724
* Which class names to add or remove from a tag.

src/wp-includes/html-api/class-wp-html-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function get_html(): string {
109109
}
110110

111111
public function get_tag_attributes(): array {
112-
return $this->attributes;
112+
return Closure::bind( fn () => $this->attributes, $this, WP_HTML_Tag_Processor::class )();
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)