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
This commit is contained in:
parent
ef8a32f6b9
commit
e9850e7225
|
@ -28,7 +28,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -128,7 +128,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
|||
|
||||
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
|
||||
echo '<span class="comments-link">';
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) );
|
||||
echo '</span>';
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) :
|
|||
$link = sprintf(
|
||||
'<a href="%1$s" class="more-link">%2$s</a>',
|
||||
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' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -226,7 +226,7 @@ if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) :
|
|||
$link = sprintf(
|
||||
'<a href="%1$s" class="more-link">%2$s</a>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -235,7 +235,7 @@ function twentynineteen_excerpt_more( $link ) {
|
|||
$link = sprintf(
|
||||
'<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -394,7 +394,7 @@ function twentyseventeen_excerpt_more( $link ) {
|
|||
$link = sprintf(
|
||||
'<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), get_the_title( get_the_ID() ) )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -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<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -41,7 +41,7 @@ global $twentyseventeencounter;
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -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<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
|
|
@ -84,7 +84,7 @@ get_header(); ?>
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -49,7 +49,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
|
|||
|
||||
if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
|
||||
echo '<span class="comments-link">';
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
|
||||
echo '</span>';
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ if ( ! function_exists( 'twentysixteen_excerpt_more' ) && ! is_admin() ) :
|
|||
$link = sprintf(
|
||||
'<a href="%1$s" class="more-link">%2$s</a>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ), get_the_title( get_the_ID() ) )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
@ -39,7 +39,7 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
)
|
||||
|
@ -49,7 +49,7 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
|
|
@ -690,7 +690,7 @@ if ( ! function_exists( 'twentythirteen_excerpt_more' ) && ! is_admin() ) :
|
|||
$link = sprintf(
|
||||
'<a href="%1$s" class="more-link">%2$s</a>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Post title. */
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue