Ticket #17264: 17264.4.diff
File 17264.4.diff, 777 bytes (added by , 13 years ago) |
---|
-
wp-includes/query.php
2231 2231 } 2232 2232 } 2233 2233 2234 if ( !empty( $this->tax_query->queries ) || !empty( $q['meta_key'] ) ) {2235 $groupby = "{$wpdb->posts}.ID";2236 }2237 2238 2234 // Author/user stuff 2239 2235 2240 2236 if ( empty($q['author']) || ($q['author'] == '0') ) { … … 2480 2476 $where .= $clauses['where']; 2481 2477 } 2482 2478 2479 if ( !empty( $this->tax_query->queries ) || !empty( $q['meta_query'] ) ) { 2480 $groupby = "{$wpdb->posts}.ID"; 2481 } 2482 2483 2483 // Apply filters on where and join prior to paging so that any 2484 2484 // manipulations to them are reflected in the paging by day queries. 2485 2485 if ( !$q['suppress_filters'] ) {