diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php index b9cae2d48e..be867c4ced 100644 --- a/wp-includes/blocks/template-part.php +++ b/wp-includes/blocks/template-part.php @@ -161,7 +161,7 @@ function render_block_core_template_part( $attributes ) { global $wp_embed; $content = $wp_embed->autoembed( $content ); - if ( empty( $attributes['tagName'] ) ) { + if ( empty( $attributes['tagName'] ) || tag_escape( $attributes['tagName'] ) !== $attributes['tagName'] ) { $area_tag = 'div'; if ( $area_definition && isset( $area_definition['area_tag'] ) ) { $area_tag = $area_definition['area_tag']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 1f5d4d9b65..69e1c77680 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta3-58478'; +$wp_version = '6.6-beta3-58553'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.