diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:58:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:58:13 +0000 |
commit | 1c9f89c96d7f1373ecec034fd078f3ab60a77e71 (patch) | |
tree | ecb9ca7fa7ef5bfd4d38721c7310d457cedfae5d /wp-includes/blocks/avatar.php | |
parent | Releasing progress-linux version 6.5+dfsg1-1~progress7.99u1. (diff) | |
download | wordpress-1c9f89c96d7f1373ecec034fd078f3ab60a77e71.tar.xz wordpress-1c9f89c96d7f1373ecec034fd078f3ab60a77e71.zip |
Merging upstream version 6.5.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/avatar.php')
-rw-r--r-- | wp-includes/blocks/avatar.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/blocks/avatar.php b/wp-includes/blocks/avatar.php index d404fb8..ba6a5e0 100644 --- a/wp-includes/blocks/avatar.php +++ b/wp-includes/blocks/avatar.php @@ -49,7 +49,7 @@ function render_block_core_avatar( $attributes, $content, $block ) { $label = ''; if ( '_blank' === $attributes['linkTarget'] ) { // translators: %s is the Author name. - $label = 'aria-label="' . sprintf( esc_attr__( '(%s author archive, opens in a new tab)' ), $author_name ) . '"'; + $label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"'; } // translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image. $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 ) { $label = ''; if ( '_blank' === $attributes['linkTarget'] ) { // translators: %s is the Comment Author name. - $label = 'aria-label="' . sprintf( esc_attr__( '(%s website link, opens in a new tab)' ), $comment->comment_author ) . '"'; + $label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"'; } // translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image. $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 ); |