From 5e0bb805e590cb5e7b391367a7a3816b75c633d8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 14 Sep 2006 00:18:05 +0000 Subject: [PATCH] Cron unscheduling fixes. git-svn-id: https://develop.svn.wordpress.org/trunk@4190 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-cron.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-cron.php b/wp-cron.php index dd52f2b3a9..d992601140 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -17,12 +17,11 @@ foreach ($crons as $timestamp => $cronhooks) { do_action_ref_array($hook, $args['args']); $schedule = $args['schedule']; if ($schedule != false) { - $args = array_merge( array($timestamp, $schedule, $hook), $args['args']); - call_user_func_array('wp_reschedule_event', $args); + $new_args = array_merge( array($timestamp, $schedule, $hook), $args['args']); + call_user_func_array('wp_reschedule_event', $new_args); } - wp_unschedule_event($timestamp, $hook); + wp_unschedule_event($timestamp, $hook, $args['args']); } - wp_unschedule_event($timestamp, $hook, $args); } } ?>