I was testing out the registration and I was able to create a new user with a user name that was extremely long.
Where can I make a change to limit the user name to like 50 chars?
I was testing out the registration and I was able to create a new user with a user name that was extremely long.
Where can I make a change to limit the user name to like 50 chars?
jwack,
Here is a good place to start: http://scriptplayground.com/tutorials/js/Limit-Textfield-Input/. If the maxlength attribute wasn't depreciated this would be easier.
This information corresponds to the wp-login.php file at line 415.
jwack,
Adding maxlength="9" in wp-login.php at line 415 worked for me. Now my new users are limited to a username no longer than nine characters.
just remember ya did that! You'll lose that change on every upgrade
This topic has been closed to new replies.