diff --git a/wp-includes/query.php b/wp-includes/query.php index 8ec85b2127..ba4d335d74 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -3650,10 +3650,11 @@ class WP_Query { } } - // Convert to WP_Post objects and set the found-post totals. + $this->set_found_posts( $q, $limits ); + + // Convert to WP_Post objects. if ( $this->posts ) { $this->posts = array_map( 'get_post', $this->posts ); - $this->set_found_posts( $q, $limits ); } if ( ! $q['suppress_filters'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 094297837d..f56a32d5f9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37710'; +$wp_version = '4.6-alpha-37712'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.