Changeset 5296 for branches/2.2/wp-includes/category.php
- Timestamp:
- 04/23/2007 08:31:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-includes/category.php
r5289 r5296 252 252 253 253 $category_list = array(); 254 $ children = _get_category_hierarchy();255 256 if ( ( 0 != $category_id ) && ! isset($ children[$category_id]) )254 $has_children = _get_category_hierarchy(); 255 256 if ( ( 0 != $category_id ) && ! isset($has_children[$category_id]) ) 257 257 return array(); 258 258 … … 264 264 $category_list[] = $category; 265 265 266 if ( !isset($ children[$category->cat_ID]) )266 if ( !isset($has_children[$category->cat_ID]) ) 267 267 continue; 268 268 269 269 if ( $children = _get_cat_children($category->cat_ID, $categories) ) 270 270 $category_list = array_merge($category_list, $children);
Note: See TracChangeset
for help on using the changeset viewer.