Make WordPress Core

Ticket #27442: 27442.patch

File 27442.patch, 587 bytes (added by desaiuditd, 11 years ago)
  • trunk/src/wp-includes/comment.php

     
    394394                        $clauses = $this->meta_query->get_sql( 'comment', $wpdb->comments, 'comment_ID', $this );
    395395                        $join .= $clauses['join'];
    396396                        $where .= $clauses['where'];
    397                         $groupby = "{$wpdb->comments}.comment_ID";
     397                        if ( ! $count ) {
     398                                $groupby = "{$wpdb->comments}.comment_ID";
     399                        }
    398400                }
    399401
    400402                if ( ! empty( $date_query ) && is_array( $date_query ) ) {