Make WordPress Core

Changeset 3561


Ignore:
Timestamp:
02/20/2006 09:07:17 PM (21 years ago)
Author:
ryan
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r3548 r3561  
    8989add_action('publish_future_post', 'wp_publish_post', 10, 1);
    9090add_action('wp_head', 'noindex', 1);
     91add_action('init', 'wp_cron');
    9192?>
  • trunk/wp-settings.php

    r3517 r3561  
    218218function shutdown_action_hook() {
    219219        do_action('shutdown');
    220         wp_cron();
    221220        wp_cache_close();
    222221}
Note: See TracChangeset for help on using the changeset viewer.