Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449
git-svn-id: http://svn.automattic.com/wordpress/trunk@19922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ff7850931
commit
15c7c9095b
|
@ -244,8 +244,8 @@ function spawn_cron( $local_time = 0 ) {
|
||||||
$doing_wp_cron = sprintf( '%.22F', $local_time );
|
$doing_wp_cron = sprintf( '%.22F', $local_time );
|
||||||
set_transient( 'doing_cron', $doing_wp_cron );
|
set_transient( 'doing_cron', $doing_wp_cron );
|
||||||
|
|
||||||
$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron=' . $doing_wp_cron;
|
$cron_url = site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron );
|
||||||
wp_remote_post( $cron_url, array('timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) );
|
wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue