Make WordPress Core

Changeset 41729


Ignore:
Timestamp:
10/04/2017 01:21:59 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/comments.php

    r40851 r41729  
    2727            <?php
    2828                $comments_number = get_comments_number();
    29                 if ( 1 === $comments_number ) {
     29                if ( '1' === $comments_number ) {
    3030                    /* translators: %s: post title */
    3131                    printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
Note: See TracChangeset for help on using the changeset viewer.