From 927098e5aa0fadc0c6755bc0c8fbc2ddb91398cd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:47:38 +0000 Subject: [PATCH] Code Modernisation: Replace `call_user_func_array()` in `wp-cron.php` with a direct function call. Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46142 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-cron.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-cron.php b/src/wp-cron.php index d9a2c94072..1a944c216e 100644 --- a/src/wp-cron.php +++ b/src/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'] );