Changeset 15827 for trunk/wp-includes/query.php
- Timestamp:
- 10/17/2010 06:14:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r15825 r15827 2578 2578 if ( !empty( $tax_query ) ) { 2579 2579 $query = reset( $tax_query ); 2580 2580 2581 if ( 'term_id' == $query['field'] ) 2581 2582 $term = get_term( reset( $query['terms'] ), $query['taxonomy'] ); … … 2583 2584 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); 2584 2585 2585 $this->queried_object = $term; 2586 $this->queried_object_id = $term->term_id; 2586 if ( $term && ! is_wp_error($term) ) { 2587 $this->queried_object = $term; 2588 $this->queried_object_id = $term->term_id; 2589 } 2587 2590 } elseif ( $this->is_posts_page ) { 2588 2591 $page_for_posts = get_option('page_for_posts');
Note: See TracChangeset
for help on using the changeset viewer.