Commit 1920c58314 for wordpress.org

commit 1920c583142606115985a9adfcba9faa4b5cc241
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date:   Wed Nov 6 12:05:15 2024 +0000

    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

diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php
index 8cfa996028..a1c52019c2 100644
--- a/wp-includes/class-wp-block.php
+++ b/wp-includes/class-wp-block.php
@@ -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,
 						)
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 2939732c09..8350bed169 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -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.