Add file missed in [58475].

Built from https://develop.svn.wordpress.org/branches/6.4@58482


git-svn-id: http://core.svn.wordpress.org/branches/6.4@57931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2024-06-24 15:24:10 +00:00
parent 39fcd03dc4
commit ee5db3cfa6

View File

@ -151,7 +151,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'];