@wordpress/block-library 8.3.14 → 8.3.16

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": "8.3.14",
3
+ "version": "8.3.16",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "479778b4251cc9506639a40a5ed65bcee649f949"
80
+ "gitHead": "99458acc7733f240d4bc279899c157a61164eadd"
81
81
  }
@@ -97,7 +97,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
97
97
  $label = '';
98
98
  if ( '_blank' === $attributes['linkTarget'] ) {
99
99
  // translators: %s is the Author name.
100
- $label = 'aria-label="' . sprintf( esc_attr__( '(%s author archive, opens in a new tab)' ), $author_name ) . '"';
100
+ $label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
101
101
  }
102
102
  // translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
103
103
  $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
@@ -124,7 +124,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
124
124
  $label = '';
125
125
  if ( '_blank' === $attributes['linkTarget'] ) {
126
126
  // translators: %s is the Comment Author name.
127
- $label = 'aria-label="' . sprintf( esc_attr__( '(%s website link, opens in a new tab)' ), $comment->comment_author ) . '"';
127
+ $label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
128
128
  }
129
129
  // translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
130
130
  $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
@@ -155,7 +155,7 @@ function render_block_core_template_part( $attributes ) {
155
155
  global $wp_embed;
156
156
  $content = $wp_embed->autoembed( $content );
157
157
 
158
- if ( empty( $attributes['tagName'] ) ) {
158
+ if ( empty( $attributes['tagName'] ) || tag_escape( $attributes['tagName'] ) !== $attributes['tagName'] ) {
159
159
  $area_tag = 'div';
160
160
  if ( $area_definition && isset( $area_definition['area_tag'] ) ) {
161
161
  $area_tag = $area_definition['area_tag'];