Make WordPress Core

Changeset 53221


Ignore:
Timestamp:
04/19/2022 03:21:43 PM (2 years ago)
Author:
davidbaumwald
Message:

Twenty Twenty-One: Correct translator comment in twenty_twenty_one_continue_reading_text.

This commit updates the translator comment in twenty_twenty_one_continue_reading_text to indicate that the text is visually hidden. This change also corrects the comment above the the_content_more_link filter to reference the content, not the excerpt.

Props sabernhardt, costdev.
Fixes #55564.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php

    r52217 r53221  
    135135function twenty_twenty_one_continue_reading_text() {
    136136    $continue_reading = sprintf(
    137         /* translators: %s: Name of current post. */
     137        /* translators: %s: Post title. Only visible to screen readers. */
    138138        esc_html__( 'Continue reading %s', 'twentytwentyone' ),
    139139        the_title( '<span class="screen-reader-text">', '</span>', false )
     
    168168}
    169169
    170 // Filter the excerpt more link.
     170// Filter the content more link.
    171171add_filter( 'the_content_more_link', 'twenty_twenty_one_continue_reading_link' );
    172172
Note: See TracChangeset for help on using the changeset viewer.