From d0b26b2d434fc5e9680ce4a994ef7c8ca6ff03d6 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 29 Nov 2010 05:16:24 +0000 Subject: [PATCH] Kill check_server_timer(). fixes #15602. git-svn-id: http://svn.automattic.com/wordpress/trunk@16603 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index c0a72d298..7258cb0ce 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -198,14 +198,6 @@ function spawn_cron( $local_time = 0 ) { if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) ) 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 * try to make this as atomic as possible by setting doing_cron switch @@ -410,9 +402,4 @@ function _upgrade_cron_array($cron) { $new_cron['version'] = 2; update_option( 'cron', $new_cron ); return $new_cron; -} - -// stub for checking server timer accuracy, using outside standard time sources -function check_server_timer( $local_time ) { - return true; -} +} \ No newline at end of file