Changeset 31366 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/07/2015 07:49:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r31340 r31366 3901 3901 $tax_query_in_and = wp_list_filter( $this->tax_query->queried_terms, array( 'operator' => 'NOT IN' ), 'NOT' ); 3902 3902 3903 $queried_taxonomies = array_keys( $tax_query_in_and ); 3904 $matched_taxonomy = reset( $queried_taxonomies ); 3905 $query = $tax_query_in_and[ $matched_taxonomy ]; 3906 3907 if ( $query['terms'] ) { 3908 if ( 'term_id' == $query['field'] ) { 3909 $term = get_term( reset( $query['terms'] ), $matched_taxonomy ); 3910 } else { 3911 $term = get_term_by( $query['field'], reset( $query['terms'] ), $matched_taxonomy ); 3903 if ( ! empty( $tax_query_in_and ) ) { 3904 $queried_taxonomies = array_keys( $tax_query_in_and ); 3905 $matched_taxonomy = reset( $queried_taxonomies ); 3906 $query = $tax_query_in_and[ $matched_taxonomy ]; 3907 3908 if ( $query['terms'] ) { 3909 if ( 'term_id' == $query['field'] ) { 3910 $term = get_term( reset( $query['terms'] ), $matched_taxonomy ); 3911 } else { 3912 $term = get_term_by( $query['field'], reset( $query['terms'] ), $matched_taxonomy ); 3913 } 3912 3914 } 3913 3915 }
Note: See TracChangeset
for help on using the changeset viewer.