From 86bd38e79c542904aaf23894a6bd8444598e2b9f Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 20 Jul 2019 06:46:15 +0200
Subject: [PATCH] Simplify wp_cron.php

---
 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'] );
-- 
2.21.0.windows.1

