mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Always set groupby when a tax query is involved. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cbe9f7f3a0
commit
63e3c4430e
@ -1980,7 +1980,7 @@ class WP_Query {
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->is_category || $this->is_tag || $this->is_tax || !empty( $q['meta_key'] ) ) {
|
||||
if ( !empty( $this->tax_query->queries ) || !empty( $q['meta_key'] ) ) {
|
||||
$groupby = "{$wpdb->posts}.ID";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user