Change cron arg passing. Props masquerade. fixes #3169.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2006-10-08 17:50:21 +00:00
parent df47e48d7c
commit 287467334e
4 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ foreach ($crons as $timestamp => $cronhooks) {
do_action_ref_array($hook, $args['args']);
$schedule = $args['schedule'];
if ($schedule != false) {
$new_args = array_merge( array($timestamp, $schedule, $hook), $args['args']);
$new_args = array($timestamp, $schedule, $hook, $args['args']);
call_user_func_array('wp_reschedule_event', $new_args);
}
wp_unschedule_event($timestamp, $hook, $args['args']);