mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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:
parent
16f4229d09
commit
1920c58314
@ -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,
|
||||
)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user