mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
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
This commit is contained in:
parent
0cda0d89f0
commit
decf6ec071
@ -88,4 +88,5 @@ add_filter('option_ping_sites', 'privacy_ping_filter');
|
|||||||
add_action('wp_head', 'rsd_link');
|
add_action('wp_head', 'rsd_link');
|
||||||
add_action('publish_future_post', 'wp_publish_post', 10, 1);
|
add_action('publish_future_post', 'wp_publish_post', 10, 1);
|
||||||
add_action('wp_head', 'noindex', 1);
|
add_action('wp_head', 'noindex', 1);
|
||||||
|
add_action('init', 'wp_cron');
|
||||||
?>
|
?>
|
||||||
|
@ -217,7 +217,6 @@ if ( file_exists(TEMPLATEPATH . "/functions.php") )
|
|||||||
|
|
||||||
function shutdown_action_hook() {
|
function shutdown_action_hook() {
|
||||||
do_action('shutdown');
|
do_action('shutdown');
|
||||||
wp_cron();
|
|
||||||
wp_cache_close();
|
wp_cache_close();
|
||||||
}
|
}
|
||||||
register_shutdown_function('shutdown_action_hook');
|
register_shutdown_function('shutdown_action_hook');
|
||||||
|
Loading…
Reference in New Issue
Block a user