From 1babe4b9681fb67ccf2e3a1b551a625d3bc7c57c Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 21 Sep 2016 17:38:28 +0000 Subject: [PATCH] Comments: Revert [38298]. Instead use the correct comparison operator which was changed in [38297]. Fixes #37416. Built from https://develop.svn.wordpress.org/trunk@38639 git-svn-id: http://core.svn.wordpress.org/trunk@38582 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment-query.php | 5 +---- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index 573115a952..a4429c97ec 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -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 ] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0f29358c66..4f6948adf6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38638'; +$wp_version = '4.7-alpha-38639'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.