From b28ca0f4b8941439422edc01f75ffbce36e4d274 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 Jun 2016 14:27:49 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@37873 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-comment-query.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php index 8c35112ba3..76fb71db9a 100644 --- a/src/wp-includes/class-wp-comment-query.php +++ b/src/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.