WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4181 closed defect (bug) (fixed)

Setup current user info during init

Reported by: ryan Owned by: ryan
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords:
Focuses: 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 7 years ago.

Download all attachments as: .zip

Change History (4)

ryan7 years ago

comment:1 rob1n7 years ago

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

comment:2 ryan7 years ago

  • Milestone changed from 2.3 to 2.4 (next)

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