Changeset 6125 for trunk/wp-includes/category.php
- Timestamp:
- 09/18/07 16:32:22 (1 year ago)
- Files:
-
- trunk/wp-includes/category.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/category.php
r6071 r6125 31 31 function &get_category($category, $output = OBJECT, $filter = 'raw') { 32 32 $category = get_term($category, 'category', $output, $filter); 33 if ( is_wp_error( $category ) ) 34 return $category; 33 35 34 36 _make_cat_compat($category); … … 59 61 while ( ($curcategory->parent != 0) && ($curcategory->parent != $curcategory->term_id) ) { 60 62 $curcategory = get_term($curcategory->parent, 'category'); 63 if ( is_wp_error( $curcategory ) ) 64 return $curcategory; 61 65 $path = '/' . $curcategory->slug . $path; 62 66 }
