Update comments.php
(1 === $comment_count) was returning false even when 1 comment posted.
This commit is contained in:
parent
8382633fb7
commit
774cce6277
|
@ -28,7 +28,7 @@ if ( post_password_required() ) {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$comments_number = get_comments_number();
|
$comments_number = get_comments_number();
|
||||||
if ( 1 === $comments_number ) {
|
if ( 1 === (int)$comments_number ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: post title */
|
/* translators: %s: post title */
|
||||||
esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ),
|
esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ),
|
||||||
|
|
Reference in New Issue