[wp-trac] [WordPress Trac] #27317: Update wp_insert_user function to return 'pre_user_login' filter WP_Errors
WordPress Trac
noreply at wordpress.org
Fri Dec 4 23:24:58 UTC 2015
#27317: Update wp_insert_user function to return 'pre_user_login' filter WP_Errors
------------------------------+-----------------------------
Reporter: crazycoolcam | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35772"]:
{{{
#!CommitTicketReference repository="" revision="35772"
Use 'invalid_username' error code when tripping 'illegal_user_logins'.
This gives us better compatibility with existing errors thrown by
`sanitize_user()`, especially in Multisite, where user_login has more
restrictions on allowed characters.
Props markjaquith.
Fixes #27317.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27317#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list