How to customize the username sanitation?
-
I have searched these forums and found the code in the file where the characters not allowed in usernames seems to be stored. As i really could use allowing hyphens and underscores in the usernames of my community, and as the topics i found don’t explain HOW to modify this code, i’d really appreciate some help with this!
From wp-includes/formatting.php row 778:
// Kill octets $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username ); $username = preg_replace( '/&.+?;/', '', $username ); // Kill entities
So does anyone understand that code and how to modify it to allow hyphens and underscores? I don’t even understand whether this code allows or disallows.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to customize the username sanitation?’ is closed to new replies.