Update comments.php

(1 === $comment_count) was returning false even when 1 comment posted.
This commit is contained in:
Vishal Deshpande 2017-12-28 14:35:34 +05:30 committed by GitHub
parent 8382633fb7
commit 774cce6277
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() ) {
<?php
$comments_number = get_comments_number();
if ( 1 === $comments_number ) {
if ( 1 === (int)$comments_number ) {
printf(
/* translators: %s: post title */
esc_html_x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'understrap' ),