Ampersand in username bug?
Does anyone else have this problem. If someone creates a double first name for their username (ie a married couple creating one single account), and use an ampersand, their name in the profile displays and '&' and I cannot edit it and change it.
We use sanitize_text_field function to sanitize the user data (Same as WordPress Core) to santize the data for security.
Shahjahan JewelΒ ok :-). I will tell everyone to use 'and'
I wondering about human nature, what you are describing is common user behavior, and I suspect it is unlikely to change. Additionally, many future users will not read instructions to "not use &".
Given that software is supposed to automate simple tasks, could the software simply either not allow the user to put an "&" in the username field or parse the "&" and convert it to "and" automatically? If a user complaigns, then we could explain that for security reasons it is automatically changed from "&" to "and".