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.
Built from https://develop.svn.wordpress.org/trunk@59361


git-svn-id: http://core.svn.wordpress.org/trunk@58747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-11-06 12:05:15 +00:00
parent 16f4229d09
commit 1920c58314
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ class WP_Block {
foreach ( $selectors as $selector ) {
// If the parent tag, or any of its children, matches the selector, replace the HTML.
if ( strcasecmp( $block_reader->get_tag( $selector ), $selector ) === 0 || $block_reader->next_tag(
if ( strcasecmp( $block_reader->get_tag(), $selector ) === 0 || $block_reader->next_tag(
array(
'tag_name' => $selector,
)

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59359';
$wp_version = '6.8-alpha-59361';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.