Changeset 16404 for trunk/wp-includes/query.php
- Timestamp:
- 11/16/2010 04:36:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16402 r16404 1932 1932 1933 1933 // Taxonomies 1934 $tax_query = $this->parse_tax_query( $q ); 1935 1936 if ( !empty( $tax_query ) ) { 1934 $q['tax_query'] = $this->parse_tax_query( $q ); 1935 if ( !empty( $q['tax_query'] ) ) { 1937 1936 if ( empty($post_type) ) { 1938 1937 $post_type = 'any'; … … 1942 1941 } 1943 1942 1944 $where .= get_tax_sql( $ tax_query, "$wpdb->posts.ID" );1943 $where .= get_tax_sql( $q['tax_query'], "$wpdb->posts.ID" ); 1945 1944 1946 1945 // Back-compat 1947 $tax_query_in = wp_list_filter( $ tax_query, array( 'operator' => 'IN' ) );1946 $tax_query_in = wp_list_filter( $q['tax_query'], array( 'operator' => 'IN' ) ); 1948 1947 if ( !empty( $tax_query_in ) ) { 1949 1948 if ( !isset( $q['taxonomy'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.