Move wp_cron from shutdown hook to init. It was acting all funky (in the bad way) in the shutdown hook.

git-svn-id: https://develop.svn.wordpress.org/trunk@3561 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-02-20 21:07:17 +00:00
parent 30c5d8a624
commit 5932545a46
2 changed files with 1 additions and 1 deletions

View File

@ -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');
?>

View File

@ -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');