@wordpress/block-library 7.14.12 → 7.14.14
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": "7.14.
|
|
3
|
+
"version": "7.14.14",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "1b40138ee841cd75f8fcb97dba15d9f6883663aa"
|
|
77
77
|
}
|
package/src/avatar/index.php
CHANGED
|
@@ -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(
|
|
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>', 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(
|
|
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 );
|
|
@@ -128,14 +128,14 @@ function render_block_core_template_part( $attributes ) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// Run through the actions that are typically taken on the_content.
|
|
131
|
+
$content = shortcode_unautop( $content );
|
|
132
|
+
$content = do_shortcode( $content );
|
|
131
133
|
$seen_ids[ $template_part_id ] = true;
|
|
132
134
|
$content = do_blocks( $content );
|
|
133
135
|
unset( $seen_ids[ $template_part_id ] );
|
|
134
136
|
$content = wptexturize( $content );
|
|
135
137
|
$content = convert_smilies( $content );
|
|
136
|
-
$content = shortcode_unautop( $content );
|
|
137
138
|
$content = wp_filter_content_tags( $content );
|
|
138
|
-
$content = do_shortcode( $content );
|
|
139
139
|
|
|
140
140
|
// Handle embeds for block template parts.
|
|
141
141
|
global $wp_embed;
|