git-svn-id: https://develop.svn.wordpress.org/trunk@2330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f54c645796
commit
128ee4de8a
|
@ -394,14 +394,14 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0) {
|
|||
echo "\n";
|
||||
|
||||
if(isset($cur_page['children']) && is_array($cur_page['children'])) {
|
||||
echo "$indent<ul>\n";
|
||||
$new_depth = $depth + 1;
|
||||
|
||||
if(!$args['depth'] || $depth < ($args['depth']-1)) {
|
||||
echo "$indent<ul>\n";
|
||||
_page_level_out($page_id,$page_tree, $args, $new_depth);
|
||||
}
|
||||
echo "$indent</ul>\n";
|
||||
}
|
||||
}
|
||||
echo "$indent</li>\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue