Kick widgets init from init hook.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-04-28 00:35:47 +00:00
parent b028d6eaa3
commit a59fcf3c3a
2 changed files with 1 additions and 4 deletions

View File

@ -173,4 +173,5 @@ add_action('sanitize_comment_cookies', 'sanitize_comment_cookies');
add_action('admin_print_scripts', 'wp_print_scripts', 20); add_action('admin_print_scripts', 'wp_print_scripts', 20);
add_action('mce_options', '_mce_set_direction'); add_action('mce_options', '_mce_set_direction');
add_action('init', 'smilies_init', 5); add_action('init', 'smilies_init', 5);
add_action('init', 'wp_widgets_init', 1);
?> ?>

View File

@ -261,10 +261,6 @@ function shutdown_action_hook() {
} }
register_shutdown_function('shutdown_action_hook'); register_shutdown_function('shutdown_action_hook');
// widgets_init() BEFORE init, so plugins that launch on init can
// do stuff with default widgets
wp_widgets_init();
// Everything is loaded and initialized. // Everything is loaded and initialized.
do_action('init'); do_action('init');