mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 13:44:30 +00:00
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
This commit is contained in:
@@ -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( '<span class="screen-reader-text">', '</span>', 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' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user