Changeset 59332 for branches/6.7/src/wp-includes/blocks/avatar.php
- Timestamp:
- 10/31/2024 10:13:51 PM (6 months ago)
- Location:
- branches/6.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
-
branches/6.7/src/wp-includes/blocks/avatar.php
r58187 r59332 47 47 48 48 $author_name = get_the_author_meta( 'display_name', $author_id ); 49 // translators: %s is theAuthor name.49 // translators: %s: Author name. 50 50 $alt = sprintf( __( '%s Avatar' ), $author_name ); 51 51 $avatar_block = get_avatar( … … 65 65 $label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"'; 66 66 } 67 // translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.67 // translators: 1: Author archive link. 2: Link target. %3$s Aria label. %4$s Avatar image. 68 68 $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 ); 69 69 } … … 74 74 return ''; 75 75 } 76 /* translators: %s is the Comment Author name*/76 /* translators: %s: Author name. */ 77 77 $alt = sprintf( __( '%s Avatar' ), $comment->comment_author ); 78 78 $avatar_block = get_avatar( … … 89 89 $label = ''; 90 90 if ( '_blank' === $attributes['linkTarget'] ) { 91 // translators: %s is the Comment Author name.91 // translators: %s: Comment author name. 92 92 $label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"'; 93 93 } 94 // translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.95 94 $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 ); 96 95 }
Note: See TracChangeset
for help on using the changeset viewer.