From 589215399205cf1efe963172992fc3134a2cc630 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Tue, 19 Apr 2022 15:23:11 +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. Built from https://develop.svn.wordpress.org/trunk@53221 git-svn-id: http://core.svn.wordpress.org/trunk@52810 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/inc/template-functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentytwentyone/inc/template-functions.php b/wp-content/themes/twentytwentyone/inc/template-functions.php index 6498c7dfa9..6ae2f0bd18 100644 --- a/wp-content/themes/twentytwentyone/inc/template-functions.php +++ b/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' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index c50b628154..151c939683 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta1-53220'; +$wp_version = '6.0-beta1-53221'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.