git-svn-id: http://svn.automattic.com/wordpress/trunk@2330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
becc1347cb
commit
4bfafda743
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue