Skip to content
Browse files

Call WP::init() just before kicking the init action so that the curre…

…nt user is setup as early as possible. fixes #4181

git-svn-id: http://svn.automattic.com/wordpress/trunk@6586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 479fc2e commit 251ad300663608f6944ae4ee8d9e307ef5b2ef38 ryan committed Jan 9, 2008
Showing with 2 additions and 2 deletions.
  1. +0 −2 wp-admin/admin.php
  2. +2 −0 wp-settings.php
View
2 wp-admin/admin.php
@@ -19,8 +19,6 @@
update_category_cache();
-wp_get_current_user();
-
$posts_per_page = get_option('posts_per_page');
$what_to_show = get_option('what_to_show');
$date_format = get_option('date_format');
View
2 wp-settings.php
@@ -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');

0 comments on commit 251ad30

Please sign in to comment.
Something went wrong with that request. Please try again.