Changeset 21954 for trunk/wp-cron.php
- Timestamp:
- 09/23/2012 04:57:21 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-cron.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-cron.php
r19722 r21954 49 49 50 50 $keys = array_keys( $crons ); 51 $ local_time = microtime( true );51 $gmt_time = microtime( true ); 52 52 53 if ( isset($keys[0]) && $keys[0] > $ local_time )53 if ( isset($keys[0]) && $keys[0] > $gmt_time ) 54 54 die(); 55 55 … … 60 60 if ( empty( $_GET[ 'doing_wp_cron' ] ) ) { 61 61 // Called from external script/job. Try setting a lock. 62 if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $ local_time ) )62 if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) ) 63 63 return; 64 64 $doing_cron_transient = $doing_wp_cron = sprintf( '%.22F', microtime( true ) ); … … 74 74 75 75 foreach ( $crons as $timestamp => $cronhooks ) { 76 if ( $timestamp > $ local_time )76 if ( $timestamp > $gmt_time ) 77 77 break; 78 78
Note: See TracChangeset
for help on using the changeset viewer.