Skip to content

Commit 05bc7fe

Browse files
committed
Remove add_lexical_updates(), make lexical_updates protected
1 parent cac84ac commit 05bc7fe

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

lib/experimental/html/class-wp-html-tag-processor.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class WP_HTML_Tag_Processor {
422422
* @since 6.2.0
423423
* @var WP_HTML_Text_Replacement[]
424424
*/
425-
private $lexical_updates = array();
425+
protected $lexical_updates = array();
426426

427427
/**
428428
* Attribute replacements to apply to input HTML document.
@@ -1546,18 +1546,6 @@ public function is_tag_closer() {
15461546
return $this->is_closing_tag;
15471547
}
15481548

1549-
/**
1550-
* Add a lexical update, i.e. a replacement of HTML at a given position.
1551-
*
1552-
* @param int $start The start offset of the replacement.
1553-
* @param int $end The end offset of the replacement.
1554-
* @param string $text The replacement.
1555-
* @return void
1556-
*/
1557-
protected function add_lexical_update( $start, $end, $text ) {
1558-
$this->lexical_updates[] = new WP_HTML_Text_Replacement( $start, $end, $text );
1559-
}
1560-
15611549
/**
15621550
* Updates or creates a new attribute on the currently matched tag with the value passed.
15631551
*

0 commit comments

Comments
 (0)