Make WordPress Core


Ignore:
Timestamp:
10/26/2014 04:45:37 PM (10 years ago)
Author:
boonebgorges
Message:

Fix 'count' in WP_Comment_Query when using 'meta_query'.

Props heshiming, desaiuditd.
Fixes #23369.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r30004 r30026  
    560560            $join .= $clauses['join'];
    561561            $where .= $clauses['where'];
    562             $groupby = "{$wpdb->comments}.comment_ID";
     562
     563            if ( ! $this->query_vars['count'] ) {
     564                $groupby = "{$wpdb->comments}.comment_ID";
     565            }
    563566        }
    564567
Note: See TracChangeset for help on using the changeset viewer.