Changeset 30771 for trunk/src/wp-includes/query.php
- Timestamp:
- 12/07/2014 02:57:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r30682 r30771 3870 3870 } 3871 3871 } else { 3872 $tax_query_in_and = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'NOT IN' ), 'NOT' ); 3873 $query = reset( $tax_query_in_and ); 3872 // For other tax queries, grab the first term from the first clause. 3873 $tax_query_in_and = wp_list_filter( $this->tax_query->queried_terms, array( 'operator' => 'NOT IN' ), 'NOT' ); 3874 3875 $queried_taxonomies = array_keys( $tax_query_in_and ); 3876 $matched_taxonomy = reset( $queried_taxonomies ); 3877 $query = $tax_query_in_and[ $matched_taxonomy ]; 3874 3878 3875 3879 if ( $query['terms'] ) { 3876 3880 if ( 'term_id' == $query['field'] ) { 3877 $term = get_term( reset( $query['terms'] ), $ query['taxonomy']);3881 $term = get_term( reset( $query['terms'] ), $matched_taxonomy ); 3878 3882 } else { 3879 $term = get_term_by( $query['field'], reset( $query['terms'] ), $ query['taxonomy']);3883 $term = get_term_by( $query['field'], reset( $query['terms'] ), $matched_taxonomy ); 3880 3884 } 3881 3885 }
Note: See TracChangeset
for help on using the changeset viewer.