@wordpress/block-library 8.19.16 → 8.19.17
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 +2 -2
- package/src/avatar/index.php +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.17",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "cb068c6f1fb4ce20b860d59e999907c1e348fd15"
|
|
82
82
|
}
|
package/src/avatar/index.php
CHANGED
|
@@ -49,7 +49,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
49
49
|
$label = '';
|
|
50
50
|
if ( '_blank' === $attributes['linkTarget'] ) {
|
|
51
51
|
// translators: %s is the Author name.
|
|
52
|
-
$label = 'aria-label="' . sprintf(
|
|
52
|
+
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
|
|
53
53
|
}
|
|
54
54
|
// translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
|
|
55
55
|
$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 );
|
|
@@ -76,7 +76,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|
|
76
76
|
$label = '';
|
|
77
77
|
if ( '_blank' === $attributes['linkTarget'] ) {
|
|
78
78
|
// translators: %s is the Comment Author name.
|
|
79
|
-
$label = 'aria-label="' . sprintf(
|
|
79
|
+
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
|
|
80
80
|
}
|
|
81
81
|
// translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
|
|
82
82
|
$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 );
|