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: http://svn.automattic.com/wordpress/trunk@20652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8f97933671
commit
ea30b9f210
|
@ -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