Make WordPress Core

Ticket #13449: 13449.diff

File 13449.diff, 887 bytes (added by ryan, 14 years ago)
  • wp-includes/cron.php

     
    244244        $doing_wp_cron = sprintf( '%.22F', $local_time );
    245245        set_transient( 'doing_cron', $doing_wp_cron );
    246246
    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 ) ) );
     247        $cron_request = apply_filters( 'cron_request', array(
     248                'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ),
     249                'key' => $doing_wp_cron,
     250                'args' => array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) )
     251        ) );
     252
     253        wp_remote_post( $cron_request[ 'url' ], $cron_request[ 'args' ] );
    249254}
    250255
    251256/**