Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 21208ab

Browse files
committed
Merge pull request #915 from samikeijonen/master
comments_popup_link arguments props @samikeijonen. I think Travis is having a moment about other issues so going to commit as on testing this it does work. Thanks.
2 parents 019bd24 + 21e812e commit 21208ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

inc/template-tags.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function _s_entry_footer() {
6161

6262
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
6363
echo '<span class="comments-link">';
64-
comments_popup_link( esc_html__( 'Leave a comment', '_s' ), esc_html__( '1 Comment', '_s' ), esc_html__( '% Comments', '_s' ) );
64+
/* translators: %s: post title */
65+
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() ) );
6566
echo '</span>';
6667
}
6768

0 commit comments

Comments
 (0)