• Hi community!

    Sadly, I only found out about WP network only allowing lowercase usernames after going live. My bad.

    New users now get the “invalid character” error when registering, which is the least helpful error message possible ??

    For now, I’ve edited the core file to add a “lowercase only!” warning, but that’s obviously no solution. However, I couldn’t find anything better. There’s one plugin to allow Uppercase usernames, but that hasn’t been updated in over 2 years.

    How do I allow Uppercase usernames?
    Or, if not possible, how do I display a warning to my users without hacking into the core files?

    Thanks for any help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter zoutwater

    (@zoutwater)

    Thank you, Ipstenu.
    Sadly, that plugin stopped working around a year ago ??

    Has anyone found a work-around to this? I would also like people to be able to register with uppercase characters, too.

    If spaces are not allowed,
    ‘FirstnameLastname’ reads better than
    ‘firstnamelastname’ ??

    Paul.

    I know this is an old post, but wanted to post a potential solution.

    The lowercase restriction is being caused by a filter, so adding the following code in the functions.php file or a plugin should do the trick:

    remove_filter( 'sanitize_user', 'strtolower' );

    Tanner Moushey, THANK YOU!! Worked perfectly, and no plugin needed. For those who need to know how to do this, just edit your active theme’s functions.php file and add

    remove_filter( 'sanitize_user', 'strtolower' );

    to the end of it and click Save. Be sure there are no extra spaces before and after it and that all the single quote ' characters copied over correctly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow Uppercase Usernames in WP Network’ is closed to new replies.