mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Widgets for 2.3. fixes #4186
git-svn-id: https://develop.svn.wordpress.org/trunk@5297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -168,6 +168,7 @@ require (ABSPATH . WPINC . '/cron.php');
|
||||
require (ABSPATH . WPINC . '/version.php');
|
||||
require (ABSPATH . WPINC . '/deprecated.php');
|
||||
require (ABSPATH . WPINC . '/script-loader.php');
|
||||
require (ABSPATH . WPINC . '/widgets.php');
|
||||
|
||||
if (strpos($_SERVER['PHP_SELF'], 'install.php') === false) {
|
||||
// Used to guarantee unique hash cookies
|
||||
@@ -260,7 +261,11 @@ 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');
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user