Tagged: Username Availability Checker
I got a bug. When i register a username as : “ianjohnson” it s ok, it s available. Then i try to register with : “Ian Johnson”, with a space between both and i see the message “Congrats ….” it’s available, when i fill all other fields and i submit the form i see on top of the form ” username aleady exists”
How can i fix this bug please ?
Many thanks for your help
I’m using a normal WordPress site (buddypress).
Using those plugins, don’t know if there is no compatibility
– BuddyPress Xprofile Custom Field Types
– Smart WP Login
– Username Changer
– WordPress Username Availability Checker (your plugin)
– BuddyPress Profile Pro
The usernames will be treated different on a normal WordPress install. “ian johnson” becomes “ian-johnson” for nice name.
The problem is BuddyPress is removing the space before inserting user
$user_login = preg_replace( '/\s+/', '', sanitize_user( $user_login, true ) );
This was unexpected.
Anyway, I will push a release today or tomorrow with this fix and will let you know.
You must be logged in to reply to this topic.