Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#37195 closed enhancement (duplicate)

Validate usernames only once in a multisite signup

Reported by: arkimedia's profile 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)

#1 @arkimedia
8 years ago

  • Focuses multisite added

#2 @chriscct7
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #17904.

#3 @SergeyBiryukov
8 years ago

  • Component changed from General to Users
Note: See TracTickets for help on using tickets.