Fix comment number comparison in comments.php

This commit is contained in:
Sergey Biryukov 2017-11-01 03:05:24 +01:00 committed by GitHub
parent efd37d13a6
commit e5da804748
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"> <h2 class="comments-title">
<?php <?php
$comment_count = get_comments_number(); $comment_count = get_comments_number();
if ( 1 === $comment_count ) { if ( '1' === $comment_count ) {
printf( printf(
/* translators: 1: title. */ /* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', '_s' ), esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', '_s' ),