#17239 closed defect (bug) (fixed)
create username with dots
| Reported by: | lbf1 | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Users | Version: | 3.1 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
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)
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.