#37195 closed enhancement (duplicate)
Validate usernames only once in a multisite signup
Reported by: | arkimedia | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.3 |
Component: | Users | Keywords: | |
Focuses: | multisite | Cc: |
Description
In wpmu_validate_user_signup function there is a double validation for allowed username.
First, the username is passed in to a sanitize_user function and after that tested with preg_match( '/[^a-z0-9]/', $user_name );
Latter test is more strict than the one used in sanitize user function and doesn't allow for example uppercase characters or dots.
I think that the latter test is unnecessary. If it can't be removed, we should add filter for it.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Duplicate of #17904.