Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › blank spaces in url show %20 not – › Reply To: blank spaces in url show %20 not –
February 10, 2020 at 9:39 pm
#25757
Participant
I found a work around. adding a function to not allow for usernames with spaces.
// Force no username spaces
function custom_validate_username($valid, $username ) {
if (preg_match(“/\\s/”, $username)) {
// there are spaces
return $valid=false;
}
return $valid;
}