Changeset 17507
- Timestamp:
- 03/08/2011 10:07:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-includes/query.php
r17505 r17507 2191 2191 $cat_query = reset( $cat_query ); 2192 2192 $the_cat = get_term_by( $cat_query['field'], $cat_query['terms'][0], 'category' ); 2193 if ( $the_cat ) {2193 if ( $the_cat && ! is_wp_error( $the_cat ) ) { 2194 2194 $this->set( 'cat', $the_cat->term_id ); 2195 2195 $this->set( 'category_name', $the_cat->slug ); … … 2203 2203 $tag_query = reset( $tag_query ); 2204 2204 $the_tag = get_term_by( $tag_query['field'], $tag_query['terms'][0], 'post_tag' ); 2205 if ( $the_tag ) {2205 if ( $the_tag && ! is_wp_error( $the_tag ) ) { 2206 2206 $this->set( 'tag_id', $the_tag->term_id ); 2207 2207 }
Note: See TracChangeset
for help on using the changeset viewer.