[buddypress-trac] [BuddyPress] #5175: Multisite: Trying to register with capital letters is not possible. Error message doesn't reflect this.
buddypress-trac
noreply at wordpress.org
Mon Sep 16 19:21:56 UTC 2013
#5175: Multisite: Trying to register with capital letters is not possible. Error
message doesn't reflect this.
--------------------------+-------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.9
Component: Members | Version: 1.2.4
Severity: normal | Keywords:
--------------------------+-------------------
In multisite, trying to register with capital letters will throw the
following generic error.
{{{
Usernames can contain only letters, numbers, ., -, *, and @
}}}
Why? Because WP multisite explicitly filters `sanitize_user()` to
lowercase characters in `wp-includes/ms-default-filters.php`:
{{{
add_action( 'sanitize_user', 'strtolower' );
}}}
This is a UX bug.
Rather than remove this filter, we should probably patch up our user
validation function to check for multisite and check for capital letters.
If so, throw up a new error.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5175>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list