Changeset 3635
- Timestamp:
- 03/07/2006 10:34:05 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-functions.php
r3604 r3635 366 366 if ( !empty($posts) ) 367 367 foreach ( $posts as $post ) 368 wp_schedule_ event(mysql2date('U', $post->post_date), 'once', 'publish_future_post', $post->ID);368 wp_schedule_single_event(mysql2date('U', $post->post_date), 'publish_future_post', $post->ID); 369 369 } 370 370 if ( $wp_current_db_version < 3570 ) { -
trunk/wp-includes/cron.php
r3634 r3635 7 7 update_option('cron', $crons); 8 8 } 9 function wp_schedule_ new_event($timestamp, $recurrence, $hook) {9 function wp_schedule_event($timestamp, $recurrence, $hook) { 10 10 $args = array_slice(func_get_args(), 3); 11 11 $crons = get_option('cron'); … … 38 38 $timestamp += $interval; 39 39 } 40 wp_schedule_ new_event($timestamp, $recurrence, $hook);40 wp_schedule_event($timestamp, $recurrence, $hook); 41 41 } 42 42 … … 67 67 function spawn_cron() { 68 68 if (array_shift(array_keys(get_option('cron'))) > time()) return; 69 70 //Since execute pings had CGI problems, but I'd like to test this without this code first71 // It seems to be working on CGI here, please report if you have issues72 /* if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) {73 echo '<iframe src="' . $cron_url . '"></iframe>';74 }*/75 69 76 70 $cron_url = get_settings('siteurl') . '/wp-cron.php'; -
trunk/wp-includes/default-filters.php
r3577 r3635 87 87 add_action('publish_future_post', 'wp_publish_post', 10, 1); 88 88 add_action('wp_head', 'noindex', 1); 89 add_action('init', 'wp_cron'); 89 if(!defined('DOING_CRON')) 90 add_action('init', 'wp_cron'); 90 91 ?>
Note: See TracChangeset
for help on using the changeset viewer.