From decf6ec07193a688c560a9e252e5ae322845e9ea Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Feb 2006 21:07:17 +0000 Subject: [PATCH] Move wp_cron from shutdown hook to init. It was acting all funky (in the bad way) in the shutdown hook. git-svn-id: http://svn.automattic.com/wordpress/trunk@3561 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 1 + wp-settings.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 9b9b2751e2..fcf0f3c7df 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -88,4 +88,5 @@ add_filter('option_ping_sites', 'privacy_ping_filter'); add_action('wp_head', 'rsd_link'); add_action('publish_future_post', 'wp_publish_post', 10, 1); add_action('wp_head', 'noindex', 1); +add_action('init', 'wp_cron'); ?> diff --git a/wp-settings.php b/wp-settings.php index 56c1884304..3e8aa29bfe 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -217,7 +217,6 @@ if ( file_exists(TEMPLATEPATH . "/functions.php") ) function shutdown_action_hook() { do_action('shutdown'); - wp_cron(); wp_cache_close(); } register_shutdown_function('shutdown_action_hook');