diff --git a/comments.php b/comments.php index c82e263a..05011d56 100644 --- a/comments.php +++ b/comments.php @@ -27,11 +27,19 @@ if ( post_password_required() ) { if ( have_comments() ) : ?>

' . get_the_title() . '' - ); + $comment_count = get_comments_number(); + if ( 1 === $comment_count ) { + printf( + esc_html_e( 'One thought on “%1$s”', '_s' ), + '' . get_the_title() . '' + ); + } else { + printf( // WPCS: XSS OK. + esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', '_s' ) ), + number_format_i18n( $comment_count ), + '' . get_the_title() . '' + ); + } ?>