Kick widgets init from init hook.
git-svn-id: https://develop.svn.wordpress.org/trunk@5336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
91e1cb92ec
commit
f6f5f61311
@ -173,4 +173,5 @@ add_action('sanitize_comment_cookies', 'sanitize_comment_cookies');
|
||||
add_action('admin_print_scripts', 'wp_print_scripts', 20);
|
||||
add_action('mce_options', '_mce_set_direction');
|
||||
add_action('init', 'smilies_init', 5);
|
||||
add_action('init', 'wp_widgets_init', 1);
|
||||
?>
|
||||
|
@ -261,10 +261,6 @@ 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.
|
||||
do_action('init');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user