Ticket #27362: query.php.patch
File query.php.patch, 778 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/query.php
3663 3663 $term = get_term_by( 'slug', $this->get( 'category_name' ), 'category' ); 3664 3664 } 3665 3665 } elseif ( $this->is_tag ) { 3666 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); 3666 if ( $this->get( 'tag_id' ) ) { 3667 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); 3668 } elseif ( $this->get( 'tag' ) ) { 3669 $term = get_term_by( 'slug', $this->get( 'tag' ), 'post_tag' ); 3670 } 3667 3671 } else { 3668 3672 $tax_query_in_and = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'NOT IN' ), 'NOT' ); 3669 3673 $query = reset( $tax_query_in_and );