From 4bcec84309963401c069b1ad3947f953e7d204e7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:32:54 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index ddb5180117..939c8f617e 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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 ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 42f955d78a..c9156478de 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.