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:
parent
e29c2f560b
commit
44e23c2dab
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue