Make WordPress Core


Ignore:
Timestamp:
04/29/2022 05:01:22 AM (3 years ago)
Author:
peterwilsoncc
Message:

Bundled Themes: Note visually hidden text for translators.

Indicate the use of screen reader only text in translator comments.

Props sabernhardt.
Fixes #55591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php

    r53236 r53308  
    5050        if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    5151            echo '<span class="comments-link">';
    52             /* translators: %s: Post title. */
     52            /* translators: %s: Post title. Only visible to screen readers. */
    5353            comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
    5454            echo '</span>';
     
    192192            '<a href="%1$s" class="more-link">%2$s</a>',
    193193            esc_url( get_permalink( get_the_ID() ) ),
    194             /* translators: %s: Post title. */
     194            /* translators: %s: Post title. Only visible to screen readers. */
    195195            sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ), get_the_title( get_the_ID() ) )
    196196        );
Note: See TracChangeset for help on using the changeset viewer.