diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 3a39de474..1f72e4f7f 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -180,7 +180,6 @@ function spawn_cron( $local_time ) { if ( $timestamp > $local_time ) return; - $cron_url = get_option( 'siteurl' ) . '/wp-cron.php'; /* * multiple processes on multiple web servers can run this code concurrently * try to make this as atomic as possible by setting doing_cron switch @@ -201,7 +200,7 @@ function spawn_cron( $local_time ) { update_option( 'doing_cron', $local_time + 30 ); - wp_remote_post($cron_url, array('timeout' => 0.01, 'blocking' => false)); + add_action('wp_head', 'spawn_cron_request'); } /** @@ -371,4 +370,14 @@ function check_server_timer( $local_time ) { return true; } +function spawn_cron_request() { +?> + +