Changeset 26864 for trunk/src/wp-includes/query.php
- Timestamp:
- 12/22/2013 06:30:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r26525 r26864 3265 3265 if ( $this->is_category || $this->is_tag || $this->is_tax ) { 3266 3266 if ( $this->is_category ) { 3267 $term = get_term( $this->get( 'cat' ), 'category' ); 3267 if ( $this->get( 'cat' ) ) { 3268 $term = get_term( $this->get( 'cat' ), 'category' ); 3269 } elseif ( $this->get( 'category_name' ) ) { 3270 $term = get_term_by( 'slug', $this->get( 'category_name' ), 'category' ); 3271 } 3268 3272 } elseif ( $this->is_tag ) { 3269 3273 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); 3270 } else {3274 } elseif ( $query['terms'] ) { 3271 3275 $tax_query_in_and = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'NOT IN' ), 'NOT' ); 3272 3276 $query = reset( $tax_query_in_and );
Note: See TracChangeset
for help on using the changeset viewer.