Ticket #16703: 16703.diff
| File 16703.diff, 725 bytes (added by , 15 years ago) |
|---|
-
wp-includes/query.php
2147 2147 $search = apply_filters_ref_array('posts_search', array( $search, &$this ) ); 2148 2148 2149 2149 // Taxonomies 2150 $this->parse_tax_query( $q ); 2150 if ( !$this->is_singular ) { 2151 $this->parse_tax_query( $q ); 2151 2152 2152 $clauses = $this->tax_query->get_sql( $wpdb->posts, 'ID' );2153 $clauses = $this->tax_query->get_sql( $wpdb->posts, 'ID' ); 2153 2154 2154 $join .= $clauses['join']; 2155 $where .= $clauses['where']; 2155 $join .= $clauses['join']; 2156 $where .= $clauses['where']; 2157 } 2156 2158 2157 2159 if ( $this->is_tax ) { 2158 2160 if ( empty($post_type) ) {