Changeset 4362
- Timestamp:
- 10/08/2006 05:50:21 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-functions.php
r4286 r4362 504 504 if ( !empty($posts) ) 505 505 foreach ( $posts as $post ) 506 wp_schedule_single_event(mysql2date('U', $post->post_date), 'publish_future_post', $post->ID);506 wp_schedule_single_event(mysql2date('U', $post->post_date), 'publish_future_post', array($post->ID)); 507 507 } 508 508 if ( $wp_current_db_version < 3570 ) { -
trunk/wp-cron.php
r4190 r4362 18 18 $schedule = $args['schedule']; 19 19 if ($schedule != false) { 20 $new_args = array _merge( array($timestamp, $schedule, $hook), $args['args']);20 $new_args = array($timestamp, $schedule, $hook, $args['args']); 21 21 call_user_func_array('wp_reschedule_event', $new_args); 22 22 } -
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(); -
trunk/wp-includes/post.php
r4199 r4362 699 699 // Schedule publication. 700 700 if ( 'future' == $post_status ) 701 wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', $post_ID);701 wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', array($post_ID)); 702 702 703 703 do_action('save_post', $post_ID);
Note: See TracChangeset
for help on using the changeset viewer.