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.