Skip to content

Commit

Permalink
Remove add_lexical_updates(), make lexical_updates protected
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jan 23, 2023
1 parent cac84ac commit 05bc7fe
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/experimental/html/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class WP_HTML_Tag_Processor {
* @since 6.2.0
* @var WP_HTML_Text_Replacement[]
*/
private $lexical_updates = array();
protected $lexical_updates = array();

/**
* Attribute replacements to apply to input HTML document.
Expand Down Expand Up @@ -1546,18 +1546,6 @@ public function is_tag_closer() {
return $this->is_closing_tag;
}

/**
* Add a lexical update, i.e. a replacement of HTML at a given position.
*
* @param int $start The start offset of the replacement.
* @param int $end The end offset of the replacement.
* @param string $text The replacement.
* @return void
*/
protected function add_lexical_update( $start, $end, $text ) {
$this->lexical_updates[] = new WP_HTML_Text_Replacement( $start, $end, $text );
}

/**
* Updates or creates a new attribute on the currently matched tag with the value passed.
*
Expand Down

0 comments on commit 05bc7fe

Please sign in to comment.