mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Force GROUP BY when there's a tax query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16482 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1984,7 +1984,7 @@ class WP_Query {
|
||||
}
|
||||
}
|
||||
|
||||
if ( !empty($q['meta_key']) ) {
|
||||
if ( !empty( $this->tax_query ) || !empty( $q['meta_key'] ) ) {
|
||||
$groupby = "{$wpdb->posts}.ID";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user