Comments: Revert [38298].
Instead use the correct comparison operator which was changed in [38297]. Fixes #37416. Built from https://develop.svn.wordpress.org/trunk@38639 git-svn-id: http://core.svn.wordpress.org/trunk@38582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d885e3cfb0
commit
1babe4b968
|
@ -1020,10 +1020,7 @@ class WP_Comment_Query {
|
||||||
|
|
||||||
// Prime comment caches for non-top-level comments.
|
// Prime comment caches for non-top-level comments.
|
||||||
$descendant_ids = array();
|
$descendant_ids = array();
|
||||||
for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) {
|
for ( $i = 1, $c = count( $levels ); $i < $c; $i++ ) {
|
||||||
if ( empty( $levels[ $i ] ) ) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
|
$descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38638';
|
$wp_version = '4.7-alpha-38639';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue