diff --git a/wp-includes/comment.php b/wp-includes/comment.php index c5776512c0..8de3608f93 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -559,7 +559,10 @@ class WP_Comment_Query { $clauses = $this->meta_query->get_sql( 'comment', $wpdb->comments, 'comment_ID', $this ); $join .= $clauses['join']; $where .= $clauses['where']; - $groupby = "{$wpdb->comments}.comment_ID"; + + if ( ! $this->query_vars['count'] ) { + $groupby = "{$wpdb->comments}.comment_ID"; + } } $date_query = $this->query_vars['date_query']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8c99a2e112..41befd9731 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30025'; +$wp_version = '4.1-alpha-30026'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.