Make WordPress Core


Ignore:
Timestamp:
04/29/2022 05:01:22 AM (2 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/twentynineteen/functions.php

    r52929 r53308  
    236236        '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
    237237        esc_url( get_permalink( get_the_ID() ) ),
    238         /* translators: %s: Post title. */
     238        /* translators: %s: Post title. Only visible to screen readers. */
    239239        sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) )
    240240    );
Note: See TracChangeset for help on using the changeset viewer.