Changeset 5295
- Timestamp:
- 04/23/2007 08:28:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r5248 r5295 268 268 269 269 $category_list = array(); 270 $ children = _get_category_hierarchy();271 272 if ( ( 0 != $category_id ) && ! isset($ children[$category_id]) )270 $has_children = _get_category_hierarchy(); 271 272 if ( ( 0 != $category_id ) && ! isset($has_children[$category_id]) ) 273 273 return array(); 274 274 … … 280 280 $category_list[] = $category; 281 281 282 if ( !isset($ children[$category->cat_ID]) )282 if ( !isset($has_children[$category->cat_ID]) ) 283 283 continue; 284 284 285 285 if ( $children = _get_cat_children($category->cat_ID, $categories) ) 286 286 $category_list = array_merge($category_list, $children);
Note: See TracChangeset
for help on using the changeset viewer.