Minor bug in function _page_level_out ()
-
I can’t find anything regarding this function so here’s my story.
I’m using 1.5-beta-1 2005-01-27 and tried to modify the Pages list (normally in sidebar.php) into a horizontal bar which I put in the header.php. But discovered an obsolete “ul” “/ul” tag when displaying with depth=1 for children post. This gave me extra space below my menu bar.
After modifying a piece of code of the function _page_level_out() (./wordpress/wp-includes/template-functions-post.php) in
...
if(isset($cur_page["children"]) && is_array($cur_page["children"])) {
$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";
}
}...
everything worked as expected with and without title or depth.
- The topic ‘Minor bug in function _page_level_out ()’ is closed to new replies.