Let the Core handle all the others arguments but the first one. This is better

for accessibility. And fewer strings to translate in your theme.
This commit is contained in:
Sami Keijonen 2016-02-10 13:51:10 +02:00
parent 7cda9903b3
commit 21e812e748
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ function _s_entry_footer() {
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">'; echo '<span class="comments-link">';
comments_popup_link( esc_html__( 'Leave a comment', '_s' ), esc_html__( '1 Comment', '_s' ), esc_html__( '% Comments', '_s' ) ); /* translators: %s: post title */
comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', '_s' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) );
echo '</span>'; echo '</span>';
} }