Introduce cron_request filter. Props ikailo. fixes #13449
git-svn-id: http://core.svn.wordpress.org/trunk@21293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81ae841eba
commit
95cfdf2fd6
|
@ -244,8 +244,13 @@ function spawn_cron( $local_time = 0 ) {
|
|||
$doing_wp_cron = sprintf( '%.22F', $local_time );
|
||||
set_transient( 'doing_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 ) ) );
|
||||
$cron_request = apply_filters( 'cron_request', array(
|
||||
'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ),
|
||||
'key' => $doing_wp_cron,
|
||||
'args' => array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) )
|
||||
) );
|
||||
|
||||
wp_remote_post( $cron_request['url'], $cron_request['args'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue