Make WordPress Core

Changeset 21293


Ignore:
Timestamp:
07/20/2012 03:15:22 PM (13 years ago)
Author:
ryan
Message:

Introduce cron_request filter. Props ikailo. fixes #13449

File:
1 edited

Legend:

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

    r19922 r21293  
    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
Note: See TracChangeset for help on using the changeset viewer.