summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:41 +0000
commit3ce72ee99bc230c3df10841a69d0ff243eb1a0bb (patch)
tree035fdbe0ae826e1c990c61f5cecc91ba12545f27 /wp-includes/blocks
parentAdding upstream version 6.5.3+dfsg1. (diff)
downloadwordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.tar.xz
wordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.zip
Adding upstream version 6.5.5+dfsg1.upstream/6.5.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks')
-rw-r--r--wp-includes/blocks/template-part.php2
1 files changed, 1 insertions, 1 deletions
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'];