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:
parent
f02f4ac762
commit
4bdd4edb77
|
@ -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 ] );
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38297';
|
||||
$wp_version = '4.7-alpha-38298';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue