Make WordPress Core

Changeset 19922


Ignore:
Timestamp:
02/14/2012 05:53:35 PM (13 years ago)
Author:
ryan
Message:

Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r19722 r19922  
    245245    set_transient( 'doing_cron', $doing_wp_cron );
    246246
    247     $cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron=' . $doing_wp_cron;
    248     wp_remote_post( $cron_url, array('timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) );
     247    $cron_url = site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron );
     248    wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
    249249}
    250250
Note: See TracChangeset for help on using the changeset viewer.