query by parent, not child_of, in get_nested_categories(). see #4189

git-svn-id: http://svn.automattic.com/wordpress/trunk@5622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-06-01 02:24:07 +00:00
parent fb6ce027e1
commit 9e8bfa7f7b
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ function get_nested_categories( $default = 0, $parent = 0 ) {
}
}
$cats = get_categories("child_of=$parent&hide_empty=0&fields=ids");
$cats = get_categories("parent=$parent&hide_empty=0&fields=ids");
$result = array ();
if ( is_array( $cats ) ) {