Changeset 26874 for trunk/src/wp-includes/query.php
- Timestamp:
- 12/27/2013 07:29:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r26864 r26874 3272 3272 } elseif ( $this->is_tag ) { 3273 3273 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); 3274 } else if ( $query['terms'] ){3274 } else { 3275 3275 $tax_query_in_and = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'NOT IN' ), 'NOT' ); 3276 3276 $query = reset( $tax_query_in_and ); 3277 3277 3278 if ( 'term_id' == $query['field'] ) 3279 $term = get_term( reset( $query['terms'] ), $query['taxonomy'] ); 3280 else 3281 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); 3278 if ( $query['terms'] ) { 3279 if ( 'term_id' == $query['field'] ) { 3280 $term = get_term( reset( $query['terms'] ), $query['taxonomy'] ); 3281 } else { 3282 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); 3283 } 3284 } 3282 3285 } 3283 3286
Note: See TracChangeset
for help on using the changeset viewer.