mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
1b40bdd2b9
commit
76bc07fe3f
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user