Changeset 19722 for trunk/wp-includes/cron.php
- Timestamp:
- 01/09/2012 07:02:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cron.php
r19593 r19722 195 195 function spawn_cron( $local_time = 0 ) { 196 196 197 if ( ! $local_time )198 $local_time = time();197 if ( ! $local_time ) 198 $local_time = microtime( true ); 199 199 200 200 if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) ) … … 227 227 return; 228 228 229 $doing_wp_cron = $local_time;229 $doing_wp_cron = sprintf( '%.22F', $local_time ); 230 230 set_transient( 'doing_cron', $doing_wp_cron ); 231 231 … … 242 242 } 243 243 244 $doing_wp_cron = $local_time;244 $doing_wp_cron = sprintf( '%.22F', $local_time ); 245 245 set_transient( 'doing_cron', $doing_wp_cron ); 246 246 … … 265 265 return; 266 266 267 $local_time = time();267 $local_time = microtime( true ); 268 268 $keys = array_keys( $crons ); 269 269 if ( isset($keys[0]) && $keys[0] > $local_time )
Note: See TracChangeset
for help on using the changeset viewer.