[wp-trac] [WordPress Trac] #47408: At the time user_register fires, the user_login field in the database is actually set to user_nicename
WordPress Trac
noreply at wordpress.org
Mon May 27 13:28:40 UTC 2019
#47408: At the time user_register fires, the user_login field in the database is
actually set to user_nicename
--------------------------+-----------------------------
Reporter: robert.peake | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 5.2.1
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
It appears that `user_login` gets set to the correct login as defined in
`$_POST['reg_username']` (i.e. from the registration form) later in the
registration sequence. As a result, functions hooking on `user_register`
will receive confusing results from `get_userdata` and similar.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47408>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list