Changeset 17526 for trunk/wp-includes/query.php
- Timestamp:
- 03/22/2011 08:06:38 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r17506 r17526 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 && ! is_wp_error( $the_cat )) {2193 if ( $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 && ! is_wp_error( $the_tag )) {2205 if ( $the_tag ) { 2206 2206 $this->set( 'tag_id', $the_tag->term_id ); 2207 2207 }
Note: See TracChangeset
for help on using the changeset viewer.