Multisite: Disable autocapitalize and autocorrect for `user_name` input on signup
Props rafaelangeline. Fixes #36833. Built from https://develop.svn.wordpress.org/trunk@37546 git-svn-id: http://core.svn.wordpress.org/trunk@37514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d7abb8fd3
commit
a021ab4ce0
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37545';
|
||||
$wp_version = '4.6-alpha-37546';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -218,7 +218,7 @@ function show_user_form($user_name = '', $user_email = '', $errors = '') {
|
|||
if ( $errmsg = $errors->get_error_message('user_name') ) {
|
||||
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.)' );
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue