Changeset 5179
- Timestamp:
- 04/04/2007 10:32:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r5178 r5179 265 265 $category_list = array(); 266 266 $children = _get_category_hierarchy(); 267 268 if ( ( 0 != $category_id ) && ! isset($children[$category_id]) ) 269 return array(); 270 267 271 foreach ( $categories as $category ) { 268 272 if ( $category->cat_ID == $category_id ) … … 271 275 if ( $category->category_parent == $category_id ) { 272 276 $category_list[] = $category; 277 273 278 if ( !isset($children[$category->cat_ID]) ) 274 279 continue;
Note: See TracChangeset
for help on using the changeset viewer.