mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Twenty Fifteen: Use default strings for comments link.
Also adds context for screen readers, like in default strings. Props pavelevap for initial patch. Fixes #32001. git-svn-id: https://develop.svn.wordpress.org/trunk@33003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e681cb8ba7
commit
3092f5a638
@ -119,7 +119,8 @@ function twentyfifteen_entry_meta() {
|
||||
|
||||
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
|
||||
echo '<span class="comments-link">';
|
||||
comments_popup_link( __( 'Leave a comment', 'twentyfifteen' ), __( '1 Comment', 'twentyfifteen' ), __( '% Comments', 'twentyfifteen' ) );
|
||||
/* translators: %s: post title */
|
||||
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>' ), get_the_title() ) );
|
||||
echo '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user