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:
parent
21250e6c2f
commit
fa2b237e1e
|
@ -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.)' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue