WordPress.org

Make WordPress Core

Changeset 16894


Ignore:
Timestamp:
12/13/2010 03:15:58 PM (9 years ago)
Author:
scribu
Message:

Always set groupby when a tax query is involved. See #15752

File:
1 edited

Legend:

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

    r16893 r16894  
    19811981        }
    19821982
    1983         if ( $this->is_category || $this->is_tag || $this->is_tax || !empty( $q['meta_key'] ) ) {
     1983        if ( !empty( $this->tax_query->queries ) || !empty( $q['meta_key'] ) ) {
    19841984            $groupby = "{$wpdb->posts}.ID";
    19851985        }
Note: See TracChangeset for help on using the changeset viewer.