Opened 6 years ago
Closed 6 years ago
#7767 closed defect (bug) (no action required)
user_name on registration without space bar Then need validation
Reported by: | ravipatel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | major | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
This one buddy press bug :
wordpress : 4.9.5
Buddypress : 2.9.4
On registration time same like default wordpress username allowed with space but buddy presss remove a space in code.
\plugins\buddypress\bp-members\bp-members-functions.php Line : 1852 $user_login = preg_replace( '/\s+/', '', sanitize_user( $user_login, true ) );
https://buddydev.com/buddypress/prevent-spaces-in-wordpressbuddypress-usernames/
In short without validate filed why removed a space from username because of after registration user don’t know this one removed a space.
Example :
Ravi Patel (registration input time)
After registration this one display now in backend RaviPatel.
Thanks for the report, @ravipatel.
It looks like we already have a ticket about this - #6144.
Going to close this as a duplicate.