Make WordPress Core

Opened 17 years ago

Closed 16 years ago

#4181 closed defect (bug) (fixed)

Setup current user info during init

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords:
Focuses: Cc:


Currently, the current user is setup when the wp() function is run from wp-blog-header.php. When WP is embedded, however, wp-blog-header.php is not loaded and the current user is never setup. Let's always make sure the current user is setup by calling WP::init at the end of wp-settings.php after plugins and everything else are initialized.

Attachments (1)

wp_init.diff (648 bytes) - added by ryan 17 years ago.

Download all attachments as: .zip

Change History (4)

17 years ago

#1 @rob1n
17 years ago

I like it. +1. Makes things more unified and simpler, which is always good :).

#2 @ryan
17 years ago

  • Milestone changed from 2.3 to 2.4 (next)

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6586]) Call WP::init() just before kicking the init action so that the current user is setup as early as possible. fixes #4181

Note: See TracTickets for help on using tickets.