Ticket #9588: 9588.15.diff
File 9588.15.diff, 1.7 KB (added by , 16 years ago) |
---|
-
wp-includes/post.php
3236 3236 if ( get_option('default_pingback_flag') ) 3237 3237 $wpdb->insert( $wpdb->postmeta, $data + array( 'meta_key' => '_pingme' ) ); 3238 3238 $wpdb->insert( $wpdb->postmeta, $data + array( 'meta_key' => '_encloseme' ) ); 3239 wp_schedule_single_event( time(), 'do_pings');3239 wp_schedule_single_event(current_time('timestamp', 1), 'do_pings'); 3240 3240 } 3241 3241 3242 3242 /** -
wp-includes/cron.php
88 88 if ( 0 == $interval ) 89 89 return false; 90 90 91 $now = time();91 $now = current_time('timestamp', 1); 92 92 93 93 if ( $timestamp >= $now ) 94 94 $timestamp = $now + $interval; … … 170 170 function spawn_cron( $local_time = 0 ) { 171 171 172 172 if ( !$local_time ) 173 $local_time = time();173 $local_time = current_time('timestamp', 1); 174 174 175 175 if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) ) 176 176 return; … … 245 245 if ( false === $crons = _get_cron_array() ) 246 246 return; 247 247 248 $local_time = time();248 $local_time = current_time('timestamp', 1); 249 249 $keys = array_keys( $crons ); 250 250 if ( isset($keys[0]) && $keys[0] > $local_time ) 251 251 return; -
wp-cron.php
30 30 die(); 31 31 32 32 $keys = array_keys( $crons ); 33 $local_time = time();33 $local_time = current_time('timestamp', 1); 34 34 35 35 if ( isset($keys[0]) && $keys[0] > $local_time ) 36 36 die();