From bf2bea4987904c68ff5aa0df4295f28aec068b2a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 Jun 2016 14:28:28 +0000 Subject: [PATCH] Comments: Remove the assignment of an undocumented `$comment_count` property in `WP_Comment_Query::get_comments()`, which appears to be accidentally introduced in [34544]. Props flixos90. Fixes #37187. Built from https://develop.svn.wordpress.org/trunk@37873 git-svn-id: http://core.svn.wordpress.org/trunk@37814 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment-query.php | 2 -- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index 8c35112ba3..76fb71db9a 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -410,8 +410,6 @@ class WP_Comment_Query { $comment_ids = array_map( 'intval', $comment_ids ); - $this->comment_count = count( $this->comments ); - if ( $comment_ids && $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) { /** * Filters the query used to retrieve found comment count. diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b21ecda90..328d9e95c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37872'; +$wp_version = '4.6-alpha-37873'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.