Changeset 4190

Show
Ignore:
Timestamp:
09/14/06 00:18:05 (2 years ago)
Author:
ryan
Message:

Cron unscheduling fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-cron.php

    r4189 r4190  
    1818            $schedule = $args['schedule']; 
    1919            if ($schedule != false) { 
    20                 $args = array_merge( array($timestamp, $schedule, $hook), $args['args']); 
    21                 call_user_func_array('wp_reschedule_event', $args); 
     20                $new_args = array_merge( array($timestamp, $schedule, $hook), $args['args']); 
     21                call_user_func_array('wp_reschedule_event', $new_args); 
    2222            } 
    23             wp_unschedule_event($timestamp, $hook); 
     23            wp_unschedule_event($timestamp, $hook, $args['args']); 
    2424        } 
    25         wp_unschedule_event($timestamp, $hook, $args); 
    2625    } 
    2726}