Changeset 9859 for trunk/wp-includes/query.php
- Timestamp:
- 11/24/2008 06:14:40 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r9795 r9859 2525 2525 $cat = $this->get('cat'); 2526 2526 $category = &get_category($cat); 2527 if ( is_wp_error( $category ) ) 2528 return NULL; 2527 2529 $this->queried_object = &$category; 2528 2530 $this->queried_object_id = (int) $cat; … … 2531 2533 $tag = &get_term($tag_id, 'post_tag'); 2532 2534 if ( is_wp_error( $tag ) ) 2533 return $tag;2535 return NULL; 2534 2536 $this->queried_object = &$tag; 2535 2537 $this->queried_object_id = (int) $tag_id; … … 2539 2541 $term = &get_terms($tax, array('slug'=>$slug)); 2540 2542 if ( is_wp_error($term) || empty($term) ) 2541 return $term;2543 return NULL; 2542 2544 $term = $term[0]; 2543 2545 $this->queried_object = $term;
Note: See TracChangeset
for help on using the changeset viewer.