Make WordPress Core


Ignore:
Timestamp:
04/23/2007 08:31:47 PM (17 years ago)
Author:
ryan
Message:

Fix variable collission in _get_cat_children. For 2.2. see #3985

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/category.php

    r5289 r5296  
    252252
    253253    $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]) )
    257257        return array();
    258258
     
    264264            $category_list[] = $category;
    265265
    266             if ( !isset($children[$category->cat_ID]) )
     266            if ( !isset($has_children[$category->cat_ID]) )
    267267                continue;
    268            
     268
    269269            if ( $children = _get_cat_children($category->cat_ID, $categories) )
    270270                $category_list = array_merge($category_list, $children);
Note: See TracChangeset for help on using the changeset viewer.