#17239 closed defect (bug) (fixed)
create username with dots
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | trivial | Version: | 3.1 |
Component: | Users | Keywords: | |
Focuses: | Cc: |
Description
at 'Users > Add New' its not possible to create users with '.' in the name, but in Network Admin > Users > Add New its possible...
(normal) wp-includes/ms-functions.php
function wpmu_validate_user_signup($user_name, $user_email) { ... preg_match( '/[a-z0-9]+/', $user_name, $maybe ); ... } Only lowercase letters (a-z) and numbers are allowed.
(network) wp-admin/network/user-new.php
dont have any regexp...
Attachments (1)
Change History (8)
#4
follow-up:
↓ 7
@
14 years ago
Not allowing dots is a holdover from when the user name and domain were one and the same. That said, for now let's make network/user-new.php use wpmu_validate_user_signup(). In a later release we can drop the dot stripping.
Note: See
TracTickets for help on using
tickets.
Non-Multisite uses only sanitize_user with $strict = true and Multisite first uses wpmu_validate_user_signup.
I think dots aren't allowed because it's used for the site domain name too.