Opened 8 years ago
Closed 8 years ago
#7767 closed defect (bug) (no action required)
user_name on registration without space bar Then need validation
| Reported by: | ravipatel | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Core | Version: | |
| Severity: | major | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the report, @ravipatel.
It looks like we already have a ticket about this - #6144.
Going to close this as a duplicate.