We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6ce9e commit 3a2acb5Copy full SHA for 3a2acb5
src/wp-includes/blocks/template-part.php
@@ -151,7 +151,7 @@ function render_block_core_template_part( $attributes ) {
151
global $wp_embed;
152
$content = $wp_embed->autoembed( $content );
153
154
- if ( empty( $attributes['tagName'] ) ) {
+ if ( empty( $attributes['tagName'] ) || tag_escape( $attributes['tagName'] ) !== $attributes['tagName'] ) {
155
$area_tag = 'div';
156
if ( $area_definition && isset( $area_definition['area_tag'] ) ) {
157
$area_tag = $area_definition['area_tag'];
0 commit comments