Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#13124 closed enhancement (fixed)

Use the original username in signup validation

Reported by: donncha Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: users, signup
Focuses: Cc:


During signup, the original username is lost if it contains any unusual characters because of the sanitize_user() call. This patch restores the username so the signup page shows the original username again. The signup form will display an error as well allowing the user to modify it.

The current behaviour returns a modified but acceptable username. Some users won't notice and create that user then get angry when they realise it has changed.

This patch also adds the original username to the $result array passed to the "wpmu_validate_user_signup" filter.

Attachments (1)

ms-functions.diff (1.6 KB) - added by donncha 8 years ago.

Download all attachments as: .zip

Change History (2)

8 years ago

#1 @donncha
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14298]) Display the original username on the signup form on error, fixes #13124

Note: See TracTickets for help on using tickets.