mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
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:
parent
39fcd03dc4
commit
ee5db3cfa6
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user