From e31128ecb7ca8b66b96717534c1b5a77784cfa4d Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Tue, 19 Apr 2022 15:21:43 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53221 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwentyone/inc/template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentytwentyone/inc/template-functions.php b/src/wp-content/themes/twentytwentyone/inc/template-functions.php index 6498c7dfa9..6ae2f0bd18 100644 --- a/src/wp-content/themes/twentytwentyone/inc/template-functions.php +++ b/src/wp-content/themes/twentytwentyone/inc/template-functions.php @@ -134,7 +134,7 @@ function twenty_twenty_one_get_avatar_size() { */ function twenty_twenty_one_continue_reading_text() { $continue_reading = sprintf( - /* translators: %s: Name of current post. */ + /* translators: %s: Post title. Only visible to screen readers. */ esc_html__( 'Continue reading %s', 'twentytwentyone' ), the_title( '', '', false ) ); @@ -167,7 +167,7 @@ function twenty_twenty_one_continue_reading_link() { } } -// Filter the excerpt more link. +// Filter the content more link. add_filter( 'the_content_more_link', 'twenty_twenty_one_continue_reading_link' ); if ( ! function_exists( 'twenty_twenty_one_post_title' ) ) {