Opened 14 years ago
Closed 13 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: |
Description
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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Related: #15473