Changeset 4362 for trunk/wp-includes/cron.php
- Timestamp:
- 10/08/06 17:50:21 (2 years ago)
- Files:
-
- trunk/wp-includes/cron.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/cron.php
r4289 r4362 1 1 <?php 2 2 3 function wp_schedule_single_event( $timestamp, $hook ) { 4 $args = array_slice( func_get_args(), 2 ); 3 function wp_schedule_single_event( $timestamp, $hook, $args = array()) { 5 4 $crons = _get_cron_array(); 6 5 $key = md5(serialize($args)); … … 10 9 } 11 10 12 function wp_schedule_event( $timestamp, $recurrence, $hook ) { 13 $args = array_slice( func_get_args(), 3 ); 11 function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) { 14 12 $crons = _get_cron_array(); 15 13 $schedules = wp_get_schedules(); … … 22 20 } 23 21 24 function wp_reschedule_event( $timestamp, $recurrence, $hook ) { 25 $args = array_slice( func_get_args(), 3 ); 22 function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array()) { 26 23 $crons = _get_cron_array(); 27 24 $schedules = wp_get_schedules();
