Multisite: Disable autocapitalize and autocorrect for `user_name` input on signup

Props rafaelangeline.
Fixes #36833.


git-svn-id: https://develop.svn.wordpress.org/trunk@37546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-05-24 03:42:36 +00:00
parent 21250e6c2f
commit fa2b237e1e
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ function show_user_form($user_name = '', $user_email = '', $errors = '') {
if ( $errmsg = $errors->get_error_message('user_name') ) { if ( $errmsg = $errors->get_error_message('user_name') ) {
echo '<p class="error">'.$errmsg.'</p>'; echo '<p class="error">'.$errmsg.'</p>';
} }
echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr($user_name) .'" maxlength="60" /><br />'; echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr( $user_name ) .'" autocapitalize="none" autocorrect="off" maxlength="60" /><br />';
_e( '(Must be at least 4 characters, letters and numbers only.)' ); _e( '(Must be at least 4 characters, letters and numbers only.)' );
?> ?>