Make arguments to start_el consistent and ensure that page walking is consistent. Fixes #8303 and #8091 props filosofo.

git-svn-id: https://develop.svn.wordpress.org/trunk@9830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-11-21 17:17:18 +00:00
parent 103d7ddfe3
commit 33e4ff5f55
2 changed files with 4 additions and 4 deletions

View File

@@ -687,9 +687,9 @@ function wp_page_menu( $args = array() ) {
* @since 2.1.0
* @see Walker_Page::walk() for parameters and return description.
*/
function walk_page_tree() {
function walk_page_tree($pages, $depth, $current_page, $r) {
$walker = new Walker_Page;
$args = func_get_args();
$args = array($pages, $depth, $r, $current_page);
return call_user_func_array(array(&$walker, 'walk'), $args);
}