mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user