Changeset 7941 for trunk/wp-includes/query.php
- Timestamp:
- 05/16/2008 03:57:09 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r7906 r7941 1611 1611 $slug = $this->get('term'); 1612 1612 $term = &get_terms($tax, array('slug'=>$slug)); 1613 if ( is_wp_error($term) )1613 if ( is_wp_error($term) || empty($term) ) 1614 1614 return $term; 1615 $term = $term[0]; 1615 1616 $this->queried_object = $term; 1616 1617 $this->queried_object_id = $term->term_id;
Note: See TracChangeset
for help on using the changeset viewer.