diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index f2ccc832e7..c8fed2586a 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -1012,7 +1012,7 @@ class WP_Comment_Query { // Prime comment caches for non-top-level comments. $descendant_ids = array(); - for ( $i = 1; $i < count( $levels ); $i++ ) { + for ( $i = 1, $c = count( $levels ); $i <= $c; $i++ ) { $descendant_ids = array_merge( $descendant_ids, $levels[ $i ] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 530fc52889..1231f9f757 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38296'; +$wp_version = '4.7-alpha-38297'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.