Don't get children for cat 0. fixes #2123

git-svn-id: https://develop.svn.wordpress.org/trunk@3338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-22 04:31:48 +00:00
parent 1b40bdd2b9
commit 76bc07fe3f

View File

@ -126,6 +126,9 @@ function get_category_parents($id, $link = FALSE, $separator = '/', $nicename =
}
function get_category_children($id, $before = '/', $after = '') {
if ( 0 == $id )
return '';
$cat_ids = get_all_category_ids();
foreach ( $cat_ids as $cat_id ) {
if ( $cat_id == $id)