Merge pull request #1228 from SergeyBiryukov/patch-1

Make comments number comparison work as expected
This commit is contained in:
Laurel 2018-01-26 09:42:42 -08:00 committed by GitHub
commit c5f33c1966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if ( post_password_required() ) {
<h2 class="comments-title">
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
if ( '1' === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', '_s' ),