File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments