Use wp_guess_url() for determining the cron URL. Props jacobsantos. see #4779
git-svn-id: https://develop.svn.wordpress.org/trunk@8529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
53de042ebd
commit
0f4aac8854
@ -88,7 +88,7 @@ function spawn_cron() {
|
||||
if ( array_shift( $keys ) > time() )
|
||||
return;
|
||||
|
||||
$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425');
|
||||
$cron_url = wp_guess_url() . 'wp-cron.php?check=' . wp_hash('187425');
|
||||
|
||||
wp_remote_post($cron_url, array('timeout' => 0.01, 'blocking' => false));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user