From ea30b9f2103b1a31ec8bebe0703f418168c7e2bd Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 30 Apr 2012 21:02:54 +0000 Subject: [PATCH] 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 --- wp-includes/default-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 35ee681bc..75c49cd4d 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -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 );