git-svn-id: https://develop.svn.wordpress.org/trunk@2330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-14 07:09:51 +00:00
parent f54c645796
commit 128ee4de8a
1 changed files with 2 additions and 2 deletions

View File

@ -394,13 +394,13 @@ 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</ul>\n";
}
echo "$indent</li>\n";
}