Changeset 5295

Show
Ignore:
Timestamp:
04/23/07 20:28:38 (1 year ago)
Author:
ryan
Message:

Fix variable collission in _get_cat_children. see #3985

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/category.php

    r5248 r5295  
    268268 
    269269    $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]) ) 
    273273        return array(); 
    274274 
     
    280280            $category_list[] = $category; 
    281281 
    282             if ( !isset($children[$category->cat_ID]) ) 
     282            if ( !isset($has_children[$category->cat_ID]) ) 
    283283                continue; 
    284              
     284 
    285285            if ( $children = _get_cat_children($category->cat_ID, $categories) ) 
    286286                $category_list = array_merge($category_list, $children);