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:
ryan 2012-04-30 21:02:54 +00:00
parent 8f97933671
commit ea30b9f210
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'at
// WP Cron // WP Cron
if ( !defined( 'DOING_CRON' ) ) if ( !defined( 'DOING_CRON' ) )
add_action( 'sanitize_comment_cookies', 'wp_cron' ); add_action( 'init', 'wp_cron' );
// 2 Actions 2 Furious // 2 Actions 2 Furious
add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 ); add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 );