From e9850e722556baeb61113a39aa6d889356d5c6a9 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 29 Apr 2022 05:03:11 +0000 Subject: [PATCH] Bundled Themes: Note visually hidden text for translators. Indicate the use of screen reader only text in translator comments. Props sabernhardt. Fixes #55591. Built from https://develop.svn.wordpress.org/trunk@53308 git-svn-id: http://core.svn.wordpress.org/trunk@52897 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/content-link.php | 2 +- wp-content/themes/twentyfifteen/content.php | 2 +- wp-content/themes/twentyfifteen/inc/template-tags.php | 4 ++-- wp-content/themes/twentyfourteen/content-aside.php | 2 +- wp-content/themes/twentyfourteen/content-audio.php | 2 +- wp-content/themes/twentyfourteen/content-gallery.php | 2 +- wp-content/themes/twentyfourteen/content-image.php | 2 +- wp-content/themes/twentyfourteen/content-link.php | 2 +- wp-content/themes/twentyfourteen/content-quote.php | 2 +- wp-content/themes/twentyfourteen/content-video.php | 2 +- wp-content/themes/twentyfourteen/content.php | 2 +- wp-content/themes/twentyfourteen/inc/template-tags.php | 2 +- wp-content/themes/twentynineteen/functions.php | 2 +- wp-content/themes/twentyseventeen/functions.php | 2 +- wp-content/themes/twentyseventeen/inc/template-tags.php | 2 +- .../template-parts/page/content-front-page-panels.php | 2 +- .../template-parts/page/content-front-page.php | 2 +- .../twentyseventeen/template-parts/post/content-audio.php | 2 +- .../twentyseventeen/template-parts/post/content-gallery.php | 2 +- .../twentyseventeen/template-parts/post/content-image.php | 2 +- .../twentyseventeen/template-parts/post/content-video.php | 2 +- .../themes/twentyseventeen/template-parts/post/content.php | 2 +- wp-content/themes/twentysixteen/image.php | 2 +- wp-content/themes/twentysixteen/inc/template-tags.php | 4 ++-- .../themes/twentysixteen/template-parts/content-page.php | 2 +- .../themes/twentysixteen/template-parts/content-search.php | 4 ++-- .../themes/twentysixteen/template-parts/content-single.php | 2 +- wp-content/themes/twentysixteen/template-parts/content.php | 4 ++-- wp-content/themes/twentythirteen/content-aside.php | 2 +- wp-content/themes/twentythirteen/content-audio.php | 2 +- wp-content/themes/twentythirteen/content-chat.php | 2 +- wp-content/themes/twentythirteen/content-gallery.php | 2 +- wp-content/themes/twentythirteen/content-image.php | 2 +- wp-content/themes/twentythirteen/content-link.php | 2 +- wp-content/themes/twentythirteen/content-quote.php | 2 +- wp-content/themes/twentythirteen/content-status.php | 2 +- wp-content/themes/twentythirteen/content-video.php | 2 +- wp-content/themes/twentythirteen/content.php | 2 +- wp-content/themes/twentythirteen/functions.php | 2 +- wp-includes/version.php | 2 +- 40 files changed, 44 insertions(+), 44 deletions(-) diff --git a/wp-content/themes/twentyfifteen/content-link.php b/wp-content/themes/twentyfifteen/content-link.php index 2d442a1588..60f3b76865 100644 --- a/wp-content/themes/twentyfifteen/content-link.php +++ b/wp-content/themes/twentyfifteen/content-link.php @@ -28,7 +28,7 @@ ', '', false ) ) diff --git a/wp-content/themes/twentyfifteen/content.php b/wp-content/themes/twentyfifteen/content.php index 3206ad6b53..8be7cf8c24 100644 --- a/wp-content/themes/twentyfifteen/content.php +++ b/wp-content/themes/twentyfifteen/content.php @@ -30,7 +30,7 @@ ', '', false ) ) diff --git a/wp-content/themes/twentyfifteen/inc/template-tags.php b/wp-content/themes/twentyfifteen/inc/template-tags.php index fa383481a3..aa3609ee51 100644 --- a/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -128,7 +128,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) : if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentyfifteen' ), get_the_title() ) ); echo ''; } @@ -248,7 +248,7 @@ if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) : $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; diff --git a/wp-content/themes/twentyfourteen/content-aside.php b/wp-content/themes/twentyfourteen/content-aside.php index ba9f1e154d..fd72b8623e 100644 --- a/wp-content/themes/twentyfourteen/content-aside.php +++ b/wp-content/themes/twentyfourteen/content-aside.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-audio.php b/wp-content/themes/twentyfourteen/content-audio.php index 4ae2dbc130..ab69ba7c89 100644 --- a/wp-content/themes/twentyfourteen/content-audio.php +++ b/wp-content/themes/twentyfourteen/content-audio.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-gallery.php b/wp-content/themes/twentyfourteen/content-gallery.php index 1d04b85d75..7e05359da1 100644 --- a/wp-content/themes/twentyfourteen/content-gallery.php +++ b/wp-content/themes/twentyfourteen/content-gallery.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-image.php b/wp-content/themes/twentyfourteen/content-image.php index 27985af9a6..aa85d8ea34 100644 --- a/wp-content/themes/twentyfourteen/content-image.php +++ b/wp-content/themes/twentyfourteen/content-image.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-link.php b/wp-content/themes/twentyfourteen/content-link.php index df30b8d21a..7931656176 100644 --- a/wp-content/themes/twentyfourteen/content-link.php +++ b/wp-content/themes/twentyfourteen/content-link.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-quote.php b/wp-content/themes/twentyfourteen/content-quote.php index 9726792c68..c991ad10cd 100644 --- a/wp-content/themes/twentyfourteen/content-quote.php +++ b/wp-content/themes/twentyfourteen/content-quote.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content-video.php b/wp-content/themes/twentyfourteen/content-video.php index 814061cef1..4fba27fdb8 100644 --- a/wp-content/themes/twentyfourteen/content-video.php +++ b/wp-content/themes/twentyfourteen/content-video.php @@ -45,7 +45,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/content.php b/wp-content/themes/twentyfourteen/content.php index 1c48043302..642b9d9448 100644 --- a/wp-content/themes/twentyfourteen/content.php +++ b/wp-content/themes/twentyfourteen/content.php @@ -54,7 +54,7 @@ →', 'twentyfourteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentyfourteen/inc/template-tags.php b/wp-content/themes/twentyfourteen/inc/template-tags.php index 7341b4579b..114b099f24 100644 --- a/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -226,7 +226,7 @@ if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) : $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading %s ', 'twentyfourteen' ), '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; diff --git a/wp-content/themes/twentynineteen/functions.php b/wp-content/themes/twentynineteen/functions.php index f1bd3fe3de..e8dfe87f15 100644 --- a/wp-content/themes/twentynineteen/functions.php +++ b/wp-content/themes/twentynineteen/functions.php @@ -235,7 +235,7 @@ function twentynineteen_excerpt_more( $link ) { $link = sprintf( '', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading "%s"', 'twentynineteen' ), get_the_title( get_the_ID() ) ) ); return ' … ' . $link; diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index dc0210d4ce..1f0b5d5399 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -394,7 +394,7 @@ function twentyseventeen_excerpt_more( $link ) { $link = sprintf( '', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading "%s"', 'twentyseventeen' ), get_the_title( get_the_ID() ) ) ); return ' … ' . $link; diff --git a/wp-content/themes/twentyseventeen/inc/template-tags.php b/wp-content/themes/twentyseventeen/inc/template-tags.php index 8f44518690..fcbdae1785 100644 --- a/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -112,7 +112,7 @@ if ( ! function_exists( 'twentyseventeen_edit_link' ) ) : function twentyseventeen_edit_link() { edit_post_link( sprintf( - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ __( 'Edit "%s"', 'twentyseventeen' ), get_the_title() ), diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php index 074af0da0e..923c11f613 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php @@ -41,7 +41,7 @@ global $twentyseventeencounter; "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php index 98427f2981..b80749861e 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php @@ -38,7 +38,7 @@ "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php index 5679503ca4..eea60e6c7c 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php @@ -79,7 +79,7 @@ the_content( sprintf( - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ __( 'Continue reading "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php b/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php index e58ead119b..3801ae521d 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php @@ -66,7 +66,7 @@ the_content( sprintf( - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ __( 'Continue reading "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-image.php b/wp-content/themes/twentyseventeen/template-parts/post/content-image.php index 1a3a1a78a5..7e63d0cc0a 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-image.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-image.php @@ -57,7 +57,7 @@ // Only show content if is a single post, or if there's no featured image. the_content( sprintf( - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ __( 'Continue reading "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php index edb7ac819c..fd7865db92 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php @@ -78,7 +78,7 @@ the_content( sprintf( - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ __( 'Continue reading "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content.php b/wp-content/themes/twentyseventeen/template-parts/post/content.php index 70c62b0cf1..9b6869fd24 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content.php @@ -53,7 +53,7 @@ "%s"', 'twentyseventeen' ), get_the_title() ) diff --git a/wp-content/themes/twentysixteen/image.php b/wp-content/themes/twentysixteen/image.php index 2f18cd5566..d20273a7c2 100644 --- a/wp-content/themes/twentysixteen/image.php +++ b/wp-content/themes/twentysixteen/image.php @@ -84,7 +84,7 @@ get_header(); ?> "%s"', 'twentysixteen' ), get_the_title() ), diff --git a/wp-content/themes/twentysixteen/inc/template-tags.php b/wp-content/themes/twentysixteen/inc/template-tags.php index acb6c9089e..e8c692ba8a 100644 --- a/wp-content/themes/twentysixteen/inc/template-tags.php +++ b/wp-content/themes/twentysixteen/inc/template-tags.php @@ -49,7 +49,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) : if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentysixteen' ), get_the_title() ) ); echo ''; } @@ -191,7 +191,7 @@ if ( ! function_exists( 'twentysixteen_excerpt_more' ) && ! is_admin() ) : $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading "%s"', 'twentysixteen' ), get_the_title( get_the_ID() ) ) ); return ' … ' . $link; diff --git a/wp-content/themes/twentysixteen/template-parts/content-page.php b/wp-content/themes/twentysixteen/template-parts/content-page.php index 58af8e0b01..123ecc5de4 100644 --- a/wp-content/themes/twentysixteen/template-parts/content-page.php +++ b/wp-content/themes/twentysixteen/template-parts/content-page.php @@ -35,7 +35,7 @@ "%s"', 'twentysixteen' ), get_the_title() ), diff --git a/wp-content/themes/twentysixteen/template-parts/content-search.php b/wp-content/themes/twentysixteen/template-parts/content-search.php index 6a912eb015..ff5e1cec00 100644 --- a/wp-content/themes/twentysixteen/template-parts/content-search.php +++ b/wp-content/themes/twentysixteen/template-parts/content-search.php @@ -24,7 +24,7 @@ "%s"', 'twentysixteen' ), get_the_title() ), @@ -39,7 +39,7 @@ "%s"', 'twentysixteen' ), get_the_title() ), diff --git a/wp-content/themes/twentysixteen/template-parts/content-single.php b/wp-content/themes/twentysixteen/template-parts/content-single.php index 1eb9f2679c..d466affabf 100644 --- a/wp-content/themes/twentysixteen/template-parts/content-single.php +++ b/wp-content/themes/twentysixteen/template-parts/content-single.php @@ -43,7 +43,7 @@ "%s"', 'twentysixteen' ), get_the_title() ), diff --git a/wp-content/themes/twentysixteen/template-parts/content.php b/wp-content/themes/twentysixteen/template-parts/content.php index 1497c76c18..1f34fc2560 100644 --- a/wp-content/themes/twentysixteen/template-parts/content.php +++ b/wp-content/themes/twentysixteen/template-parts/content.php @@ -25,7 +25,7 @@ "%s"', 'twentysixteen' ), get_the_title() ) @@ -49,7 +49,7 @@ "%s"', 'twentysixteen' ), get_the_title() ), diff --git a/wp-content/themes/twentythirteen/content-aside.php b/wp-content/themes/twentythirteen/content-aside.php index 05bd7a5219..650ae3acd2 100644 --- a/wp-content/themes/twentythirteen/content-aside.php +++ b/wp-content/themes/twentythirteen/content-aside.php @@ -13,7 +13,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-audio.php b/wp-content/themes/twentythirteen/content-audio.php index bb7e5e7a80..471e747943 100644 --- a/wp-content/themes/twentythirteen/content-audio.php +++ b/wp-content/themes/twentythirteen/content-audio.php @@ -24,7 +24,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-chat.php b/wp-content/themes/twentythirteen/content-chat.php index 2496857569..c8fee387dd 100644 --- a/wp-content/themes/twentythirteen/content-chat.php +++ b/wp-content/themes/twentythirteen/content-chat.php @@ -23,7 +23,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-gallery.php b/wp-content/themes/twentythirteen/content-gallery.php index c77b60c03b..ab512d323c 100644 --- a/wp-content/themes/twentythirteen/content-gallery.php +++ b/wp-content/themes/twentythirteen/content-gallery.php @@ -24,7 +24,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-image.php b/wp-content/themes/twentythirteen/content-image.php index 88e5957ea8..1052e670eb 100644 --- a/wp-content/themes/twentythirteen/content-image.php +++ b/wp-content/themes/twentythirteen/content-image.php @@ -23,7 +23,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-link.php b/wp-content/themes/twentythirteen/content-link.php index 9180b3a9ef..16181deeab 100644 --- a/wp-content/themes/twentythirteen/content-link.php +++ b/wp-content/themes/twentythirteen/content-link.php @@ -24,7 +24,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-quote.php b/wp-content/themes/twentythirteen/content-quote.php index b851b32708..1c25ca345c 100644 --- a/wp-content/themes/twentythirteen/content-quote.php +++ b/wp-content/themes/twentythirteen/content-quote.php @@ -13,7 +13,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-status.php b/wp-content/themes/twentythirteen/content-status.php index 49bdf6d3f6..d5b11055ca 100644 --- a/wp-content/themes/twentythirteen/content-status.php +++ b/wp-content/themes/twentythirteen/content-status.php @@ -13,7 +13,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content-video.php b/wp-content/themes/twentythirteen/content-video.php index 10170d565e..86ec0d4fc8 100644 --- a/wp-content/themes/twentythirteen/content-video.php +++ b/wp-content/themes/twentythirteen/content-video.php @@ -23,7 +23,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/content.php b/wp-content/themes/twentythirteen/content.php index 2f2c29a888..fa10d1a9e5 100644 --- a/wp-content/themes/twentythirteen/content.php +++ b/wp-content/themes/twentythirteen/content.php @@ -41,7 +41,7 @@ →', 'twentythirteen' ), the_title( '', '', false ) ) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index ae1c65e728..fe0e9becdd 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -690,7 +690,7 @@ if ( ! function_exists( 'twentythirteen_excerpt_more' ) && ! is_admin() ) : $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Post title. */ + /* translators: %s: Post title. Only visible to screen readers. */ sprintf( __( 'Continue reading %s ', 'twentythirteen' ), '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; diff --git a/wp-includes/version.php b/wp-includes/version.php index fbe3f8b627..75e8066c4e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta3-53307'; +$wp_version = '6.0-beta3-53308'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.