Skip to content

Commit 005a01d

Browse files
author
ocean90
committed
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
1 parent 9bfbc35 commit 005a01d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/wp-includes/class-wp-comment-query.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,10 +1020,7 @@ protected function fill_descendants( $comments ) {
10201020

10211021
// Prime comment caches for non-top-level comments.
10221022
$descendant_ids = array();
1023-
for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) {
1024-
if ( empty( $levels[ $i ] ) ) {
1025-
continue;
1026-
}
1023+
for ( $i = 1, $c = count( $levels ); $i < $c; $i++ ) {
10271024
$descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
10281025
}
10291026

0 commit comments

Comments
 (0)