Skip to content

Commit

Permalink
Merge pull request #915 from samikeijonen/master
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
karmatosed committed Mar 28, 2016
2 parents 019bd24 + 21e812e commit 21208ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function _s_entry_footer() {

if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
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>';
}

Expand Down

1 comment on commit 21208ab

@Aetles
Copy link

@Aetles Aetles commented on 21208ab Apr 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the capital "C" on Leave a Comment?

Please sign in to comment.