[wp-trac] [WordPress Trac] #17085: Pass $user to 'wp_login' action
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 8 12:07:11 UTC 2011
#17085: Pass $user to 'wp_login' action
-------------------------+----------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Users | Version:
Severity: normal | Keywords: has-patch
-------------------------+----------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17085>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list