Category hierarchy fixes. see #4189

git-svn-id: https://develop.svn.wordpress.org/trunk@5597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-30 01:39:47 +00:00
parent 1bb6925679
commit 18c1cade87
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ function get_nested_categories( $default = 0, $parent = 0 ) {
if ( is_array( $cats ) ) {
foreach ( $cats as $cat) {
// TODO fix hierarchy
//$result[$cat]['children'] = get_nested_categories( $default, $cat);
$result[$cat]['children'] = get_nested_categories( $default, $cat);
$result[$cat]['cat_ID'] = $cat;
$result[$cat]['checked'] = in_array( $cat, $checked_categories );
$result[$cat]['cat_name'] = get_the_category_by_ID( $cat);