Twenty Sixteen: Make sure comment number comparison in comments.php
works as expected.
`get_comments_number()` returns a numeric string, not an integer. See #39660. git-svn-id: https://develop.svn.wordpress.org/trunk@41729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f4298a476a
commit
34ce81449a
@ -26,7 +26,7 @@ if ( post_password_required() ) {
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
$comments_number = get_comments_number();
|
||||
if ( 1 === $comments_number ) {
|
||||
if ( '1' === $comments_number ) {
|
||||
/* translators: %s: post title */
|
||||
printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user