scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 3.4
[autoinstalls/wordpress.git]
/
wp-cron.php
diff --git
a/wp-cron.php
b/wp-cron.php
index a84c4635df89f9be5d5172370a826b9c8f96031e..f0da6ecc5c9095b8d5c9b4a3e91e5155c58af0cd 100644
(file)
--- a/
wp-cron.php
+++ b/
wp-cron.php
@@
-48,7
+48,7
@@
if ( false === $crons = _get_cron_array() )
die();
$keys = array_keys( $crons );
die();
$keys = array_keys( $crons );
-$local_time =
time(
);
+$local_time =
microtime( true
);
if ( isset($keys[0]) && $keys[0] > $local_time )
die();
if ( isset($keys[0]) && $keys[0] > $local_time )
die();
@@
-61,7
+61,7
@@
if ( empty( $doing_wp_cron ) ) {
// Called from external script/job. Try setting a lock.
if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $local_time ) )
return;
// Called from external script/job. Try setting a lock.
if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $local_time ) )
return;
- $doing_cron_transient = $doing_wp_cron =
time(
);
+ $doing_cron_transient = $doing_wp_cron =
sprintf( '%.22F', microtime( true )
);
set_transient( 'doing_cron', $doing_wp_cron );
} else {
$doing_wp_cron = $_GET[ 'doing_wp_cron' ];
set_transient( 'doing_cron', $doing_wp_cron );
} else {
$doing_wp_cron = $_GET[ 'doing_wp_cron' ];