Cron unscheduling fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68aa6231a2
commit
9431f91ff6
|
@ -17,12 +17,11 @@ foreach ($crons as $timestamp => $cronhooks) {
|
||||||
do_action_ref_array($hook, $args['args']);
|
do_action_ref_array($hook, $args['args']);
|
||||||
$schedule = $args['schedule'];
|
$schedule = $args['schedule'];
|
||||||
if ($schedule != false) {
|
if ($schedule != false) {
|
||||||
$args = array_merge( array($timestamp, $schedule, $hook), $args['args']);
|
$new_args = array_merge( array($timestamp, $schedule, $hook), $args['args']);
|
||||||
call_user_func_array('wp_reschedule_event', $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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue