Comments: Revert [38298].

Instead use the correct comparison operator which was changed in [38297].

Fixes #37416.

git-svn-id: https://develop.svn.wordpress.org/trunk@38639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
ocean90 2016-09-21 17:37:02 +00:00
parent 9bfbc3570b
commit 005a01da4a

View File

@ -1020,10 +1020,7 @@ class WP_Comment_Query {
// Prime comment caches for non-top-level comments.
$descendant_ids = array();
for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) {
if ( empty( $levels[ $i ] ) ) {
continue;
}
for ( $i = 1, $c = count( $levels ); $i < $c; $i++ ) {
$descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
}