Kill check_server_timer(). fixes #15602.
git-svn-id: https://develop.svn.wordpress.org/trunk@16603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5c78a0ff01
commit
9e9f0bf3d6
|
@ -198,14 +198,6 @@ function spawn_cron( $local_time = 0 ) {
|
||||||
if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) )
|
if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/*
|
|
||||||
* do not even start the cron if local server timer has drifted
|
|
||||||
* such as due to power failure, or misconfiguration
|
|
||||||
*/
|
|
||||||
$timer_accurate = check_server_timer( $local_time );
|
|
||||||
if ( !$timer_accurate )
|
|
||||||
return;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* multiple processes on multiple web servers can run this code concurrently
|
* multiple processes on multiple web servers can run this code concurrently
|
||||||
* try to make this as atomic as possible by setting doing_cron switch
|
* try to make this as atomic as possible by setting doing_cron switch
|
||||||
|
@ -411,8 +403,3 @@ function _upgrade_cron_array($cron) {
|
||||||
update_option( 'cron', $new_cron );
|
update_option( 'cron', $new_cron );
|
||||||
return $new_cron;
|
return $new_cron;
|
||||||
}
|
}
|
||||||
|
|
||||||
// stub for checking server timer accuracy, using outside standard time sources
|
|
||||||
function check_server_timer( $local_time ) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue