Make WordPress Core

Ticket #23369: 23369.patch

File 23369.patch, 556 bytes (added by desaiuditd, 12 years ago)

Patch for the issue ticket #23369

  • wp-includes/comment.php

     
    367367                        $clauses = $this->meta_query->get_sql( 'comment', $wpdb->comments, 'comment_ID', $this );
    368368                        $join .= $clauses['join'];
    369369                        $where .= $clauses['where'];
    370                         $groupby = "{$wpdb->comments}.comment_ID";
     370                        if ( !$count ) {
     371                                $groupby = "{$wpdb->comments}.comment_ID";
     372                        }
    371373                }
    372374
    373375                if ( ! empty( $date_query ) && is_array( $date_query ) ) {