mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-07 18:50:12 +00:00
Code Modernisation: Replace call_user_func_array() in wp-includes/post-template.php with a dynamic function call.
Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1524,8 +1524,7 @@ function walk_page_tree( $pages, $depth, $current_page, $r ) {
|
||||
}
|
||||
}
|
||||
|
||||
$args = array( $pages, $depth, $r, $current_page );
|
||||
return call_user_func_array( array( $walker, 'walk' ), $args );
|
||||
return $walker->walk( $pages, $depth, $r, $current_page );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user