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.