Make WordPress Core

Changeset 5295


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

Fix variable collission in _get_cat_children. see #3985

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.