Skip to content

Commit becc173

Browse files
Editor: Correct the number of arguments for WP_HTML_Tag_Processor::get_tag().
This resolves an issue with `::get_tag()` being called in `WP_Block::replace_html()` with an extra argument, as the method accepts no arguments. Follow-up to [57514]. Props justlevine, mukesh27. See #52217. git-svn-id: https://develop.svn.wordpress.org/trunk@59361 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5ff9717 commit becc173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ private function replace_html( string $block_content, string $attribute_name, $s
374374

375375
foreach ( $selectors as $selector ) {
376376
// If the parent tag, or any of its children, matches the selector, replace the HTML.
377-
if ( strcasecmp( $block_reader->get_tag( $selector ), $selector ) === 0 || $block_reader->next_tag(
377+
if ( strcasecmp( $block_reader->get_tag(), $selector ) === 0 || $block_reader->next_tag(
378378
array(
379379
'tag_name' => $selector,
380380
)

0 commit comments

Comments
 (0)