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:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user