Cron unscheduling fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@4190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
339ada9537
commit
5e0bb805e5
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user