Comments: in WP_Comment_Query::fill_descendants(), continue if there is an empty array in the loop.
See #37416, [38297]. Built from https://develop.svn.wordpress.org/trunk@38298 git-svn-id: http://core.svn.wordpress.org/trunk@38239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1013,6 +1013,9 @@ 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;
|
||||
}
|
||||
$descendant_ids = array_merge( $descendant_ids, $levels[ $i ] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user