WordPress.org

Make WordPress Core

Ticket #37187: 37187.diff

File 37187.diff, 544 bytes (added by flixos90, 3 years ago)
  • src/wp-includes/class-wp-comment-query.php

     
    410410
    411411                $comment_ids = array_map( 'intval', $comment_ids );
    412412
    413                 $this->comment_count = count( $this->comments );
    414 
    415413                if ( $comment_ids && $this->query_vars['number'] && ! $this->query_vars['no_found_rows'] ) {
    416414                        /**
    417415                         * Filters the query used to retrieve found comment count.