Ticket #26627: 26627.diff
| File 26627.diff, 616 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/query.php
3265 3265 if ( $this->is_category || $this->is_tag || $this->is_tax ) { 3266 3266 if ( $this->is_category ) { 3267 3267 $term = get_term( $this->get( 'cat' ), 'category' ); 3268 if ( null == $term || is_wp_error( $term ) ) { 3269 $term = get_term_by( 'name', $this->get( 'category_name' ), 'category' ); 3270 } 3268 3271 } elseif ( $this->is_tag ) { 3269 3272 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); 3270 3273 } else {