Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17085 closed enhancement (fixed)

Pass $user to 'wp_login' action

Reported by: scribu's profile scribu Owned by:
Milestone: 3.3 Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: Cc:


Currently, the 'wp_login' hook only passes the 'user_login' credential, forcing callbacks to unnecessarily call get_userdata_by_login() again.

wp_get_current_user() won't work, because the cookie will only be available on the next request.

Attachments (1)

17085.diff (411 bytes) - added by scribu 13 years ago.

Download all attachments as: .zip

Change History (3)

13 years ago

#1 @Otto42
13 years ago

Related: #15473

#2 @SergeyBiryukov
13 years ago

  • Milestone changed from Future Release to 3.3
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.