From 3daef6260b68ba7008ca48afc2a23f88302da7b0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:48:54 +0000 Subject: [PATCH] Code Modernisation: Replace `call_user_func_array()` in `wp-cron.php` with a direct function call. Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46142 git-svn-id: http://core.svn.wordpress.org/trunk@45954 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-cron.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-cron.php b/wp-cron.php index d9a2c94072..1a944c216e 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -118,8 +118,7 @@ foreach ( $crons as $timestamp => $cronhooks ) { $schedule = $v['schedule']; if ( $schedule ) { - $new_args = array( $timestamp, $schedule, $hook, $v['args'] ); - call_user_func_array( 'wp_reschedule_event', $new_args ); + wp_reschedule_event( $timestamp, $schedule, $hook, $v['args'] ); } wp_unschedule_event( $timestamp, $hook, $v['args'] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b4203b2413..d716eb6850 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46141'; +$wp_version = '5.3-alpha-46142'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.