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.
Built from https://develop.svn.wordpress.org/trunk@41729


git-svn-id: http://core.svn.wordpress.org/trunk@41563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-10-04 13:22:48 +00:00
parent e29c2f560b
commit 44e23c2dab
2 changed files with 2 additions and 2 deletions

View File

@ -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 &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
} else {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41728';
$wp_version = '4.9-alpha-41729';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.