Ticket #21290: query.diff
File query.diff, 657 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
2216 2216 if ( $this->is_tax ) { 2217 2217 if ( empty($post_type) ) { 2218 2218 $post_type = 'any'; 2219 $taxonomies = get_taxonomies(); 2220 foreach ( $taxonomies as $taxonomy ) { 2221 if ( isset($this->query_vars[$taxonomy]) ) { 2222 $tax_obj = get_taxonomy($taxonomy); 2223 $post_type = $tax_obj->object_type; 2224 break; 2225 } 2226 } 2219 2227 $post_status_join = true; 2220 2228 } elseif ( in_array('attachment', (array) $post_type) ) { 2221 2229 $post_status_join = true;