Fire the wp_cron action from init instead of sanitize_comment_cookies so that cron handlers can rely on a fully initialized env. Props SergeyBiryukov, norocketsurgeon. fixes #19818
git-svn-id: https://develop.svn.wordpress.org/trunk@20652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
baa8fa8a0f
commit
3f793e457c
@ -228,7 +228,7 @@ foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'at
|
||||
|
||||
// WP Cron
|
||||
if ( !defined( 'DOING_CRON' ) )
|
||||
add_action( 'sanitize_comment_cookies', 'wp_cron' );
|
||||
add_action( 'init', 'wp_cron' );
|
||||
|
||||
// 2 Actions 2 Furious
|
||||
add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user