Changeset 6125 for trunk/wp-includes/category.php
- Timestamp:
- 09/18/2007 04:32:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.