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:
parent
9bfbc3570b
commit
005a01da4a
@ -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 ] );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user