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