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
|
b
|
foreach ( $crons as $timestamp => $cronhooks ) { |
| 118 | 118 | $schedule = $v['schedule']; |
| 119 | 119 | |
| 120 | 120 | if ( $schedule ) { |
| 121 | | $new_args = array( $timestamp, $schedule, $hook, $v['args'] ); |
| 122 | | call_user_func_array( 'wp_reschedule_event', $new_args ); |
| | 121 | wp_reschedule_event( $timestamp, $schedule, $hook, $v['args'] ); |
| 123 | 122 | } |
| 124 | 123 | |
| 125 | 124 | wp_unschedule_event( $timestamp, $hook, $v['args'] ); |