Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#37195 closed enhancement (duplicate)

Validate usernames only once in a multisite signup

Reported by: arkimedia Owned by:
Priority: normal Milestone:
Component: Users Version: 4.5.3
Severity: normal Keywords:
Cc: Focuses: multisite

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
10 years ago

  • Focuses multisite added

#2 @chriscct7
10 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #17904.

#3 @SergeyBiryukov
10 years ago

  • Component General → Users
Note: See TracTickets for help on using tickets.