Skip to content

Commit 3a2acb5

Browse files
committed
Add file missed in [58475].
git-svn-id: https://develop.svn.wordpress.org/branches/6.4@58482 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1b6ce9e commit 3a2acb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/blocks/template-part.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function render_block_core_template_part( $attributes ) {
151151
global $wp_embed;
152152
$content = $wp_embed->autoembed( $content );
153153

154-
if ( empty( $attributes['tagName'] ) ) {
154+
if ( empty( $attributes['tagName'] ) || tag_escape( $attributes['tagName'] ) !== $attributes['tagName'] ) {
155155
$area_tag = 'div';
156156
if ( $area_definition && isset( $area_definition['area_tag'] ) ) {
157157
$area_tag = $area_definition['area_tag'];

0 commit comments

Comments
 (0)