From 9431f91ff6eeb5e73cdeb0812bd0fc9d3590137f Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 14 Sep 2006 00:18:05 +0000 Subject: [PATCH] Cron unscheduling fixes. git-svn-id: http://svn.automattic.com/wordpress/trunk@4190 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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); } } ?>