WordPress.org

Make WordPress Core

Changeset 16482


Ignore:
Timestamp:
11/19/10 09:17:59 (3 years ago)
Author:
scribu
Message:

Force GROUP BY when there's a tax query. See #12891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r16447 r16482  
    19851985        } 
    19861986 
    1987         if ( !empty($q['meta_key']) ) { 
     1987        if ( !empty( $this->tax_query ) || !empty( $q['meta_key'] ) ) { 
    19881988            $groupby = "{$wpdb->posts}.ID"; 
    19891989        } 
Note: See TracChangeset for help on using the changeset viewer.