Changeset 3635 for trunk/wp-includes/cron.php
- Timestamp:
- 03/07/2006 10:34:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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';
Note: See TracChangeset
for help on using the changeset viewer.