From 84f037a1298431a8feaff283dd7006958c0181f0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 1 Jul 2024 20:08:43 +0200 Subject: Merging upstream version 6.5.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/blocks/template-part.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-includes/blocks/template-part.php') diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php index 8c01c5a..4332bb3 100644 --- a/wp-includes/blocks/template-part.php +++ b/wp-includes/blocks/template-part.php @@ -157,7 +157,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']; -- cgit v1.2.3