Ticket #33793: 33793.diff
File 33793.diff, 3.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/schema.php
186 186 ID bigint(20) unsigned NOT NULL auto_increment, 187 187 user_login varchar(60) NOT NULL default '', 188 188 user_pass varchar(64) NOT NULL default '', 189 user_nicename varchar( 50) NOT NULL default '',189 user_nicename varchar(60) NOT NULL default '', 190 190 user_email varchar(100) NOT NULL default '', 191 191 user_url varchar(100) NOT NULL default '', 192 192 user_registered datetime NOT NULL default '0000-00-00 00:00:00', -
src/wp-admin/includes/user.php
104 104 105 105 $errors = new WP_Error(); 106 106 107 /* checking that username has been typed */107 /* checking that username has been typed and user_login is less than 50 characters*/ 108 108 if ( $user->user_login == '' ) 109 109 $errors->add( 'user_login', __( '<strong>ERROR</strong>: Please enter a username.' ) ); 110 110 elseif ( strlen( $user->user_login ) > 60 ) 111 $errors->add( 'user_login', __( '<strong>ERROR</strong>: Please enter a username less than 50 characters.' ) ); 111 112 /* checking the password has been typed twice */ 112 113 /** 113 114 * Fires before the password and confirm password fields are checked for congruity. -
src/wp-admin/network/user-new.php
89 89 <table class="form-table"> 90 90 <tr class="form-field form-required"> 91 91 <th scope="row"><label for="username"><?php _e( 'Username' ) ?></label></th> 92 <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" /></td>92 <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" /></td> 93 93 </tr> 94 94 <tr class="form-field form-required"> 95 95 <th scope="row"><label for="email"><?php _e( 'Email' ) ?></label></th> -
src/wp-admin/user-new.php
393 393 <table class="form-table"> 394 394 <tr class="form-field form-required"> 395 395 <th scope="row"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> 396 <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" /></td>396 <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /></td> 397 397 </tr> 398 398 <tr class="form-field form-required"> 399 399 <th scope="row"><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>