summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:43 +0000
commit84f037a1298431a8feaff283dd7006958c0181f0 (patch)
tree4cc8a21b9865dc6c421f86ade88fd1a9a325f3be /wp-includes/blocks
parentReleasing progress-linux version 6.5.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-84f037a1298431a8feaff283dd7006958c0181f0.tar.xz
wordpress-84f037a1298431a8feaff283dd7006958c0181f0.zip
Merging upstream version 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'];