Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#17085 closed enhancement (fixed)

Pass $user to 'wp_login' action

Reported by: 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 5 years ago.

Download all attachments as: .zip

Change History (3)

5 years ago

#1 @Otto42
4 years ago

Related: #15473

#2 @SergeyBiryukov
4 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.