From 21e812e748ce0773851c2aef79ae330f0ef03cc4 Mon Sep 17 00:00:00 2001 From: Sami Keijonen Date: Wed, 10 Feb 2016 13:51:10 +0200 Subject: [PATCH] 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. --- inc/template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index dd4b7e6..26dd07b 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -61,7 +61,8 @@ function _s_entry_footer() { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; - 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 on %s', '_s' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); echo ''; }