Code Modernisation: Replace `call_user_func_array()` in `wp-includes/post-template.php` with a dynamic function call.

Props jrf.
See #47678.
Built from https://develop.svn.wordpress.org/trunk@46135


git-svn-id: http://core.svn.wordpress.org/trunk@45947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-09-15 11:32:54 +00:00
parent 4b3df8e846
commit 4bcec84309
2 changed files with 2 additions and 3 deletions

View File

@ -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 );
}
/**

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-46134';
$wp_version = '5.3-alpha-46135';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.