@wordpress/block-library 9.0.2 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "a68c6b5ef53956cccf4961d53d79b6af7e00ae60"
85
+ "gitHead": "d0d80eabf45745725edbb19ce6667157fc68a6aa"
86
86
  }
@@ -161,7 +161,7 @@ function render_block_core_template_part( $attributes ) {
161
161
  global $wp_embed;
162
162
  $content = $wp_embed->autoembed( $content );
163
163
 
164
- if ( empty( $attributes['tagName'] ) ) {
164
+ if ( empty( $attributes['tagName'] ) || tag_escape( $attributes['tagName'] ) !== $attributes['tagName'] ) {
165
165
  $area_tag = 'div';
166
166
  if ( $area_definition && isset( $area_definition['area_tag'] ) ) {
167
167
  $area_tag = $area_definition['area_tag'];