mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Call WP::init() just before kicking the init action so that the current user is setup as early as possible. fixes #4181
git-svn-id: https://develop.svn.wordpress.org/trunk@6586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -438,6 +438,8 @@ function shutdown_action_hook() {
|
||||
}
|
||||
register_shutdown_function('shutdown_action_hook');
|
||||
|
||||
$wp->init(); // Sets up current user.
|
||||
|
||||
// Everything is loaded and initialized.
|
||||
do_action('init');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user