Opened 6 years ago

Closed 5 years ago

#4181 closed defect (bug) (fixed)

Setup current user info during init

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

Description

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 6 years ago.

Download all attachments as: .zip

Change History (4)

ryan6 years ago

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

comment:2   ryan6 years ago

  • Milestone changed from 2.3 to 2.4 (next)

comment:3   ryan5 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.