From 4ccc7483129445e4188e98b5c60cb8bb36c50b63 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Feb 2012 17:53:35 +0000 Subject: [PATCH] Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449 git-svn-id: https://develop.svn.wordpress.org/trunk@19922 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index a300569ce9..9117ae5d34 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -244,8 +244,8 @@ function spawn_cron( $local_time = 0 ) { $doing_wp_cron = sprintf( '%.22F', $local_time ); set_transient( 'doing_cron', $doing_wp_cron ); - $cron_url = get_option( 'siteurl' ) . '/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)) ); + $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 ) ) ); } /**