Ticket #33793: 33793_1.diff
File 33793_1.diff, 4.0 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 60 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 60 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. … … 503 504 504 505 Please click the following link to activate your user account: 505 506 %%s' ), get_bloginfo( 'name' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) ); 506 } 507 No newline at end of file 507 } -
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
375 375 <table class="form-table"> 376 376 <tr class="form-field form-required"> 377 377 <th scope="row"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> 378 <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>378 <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> 379 379 </tr> 380 380 <tr class="form-field form-required"> 381 381 <th scope="row"><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> -
src/wp-includes/user-functions.php
1252 1252 return new WP_Error( 'existing_user_login', __( 'Sorry, that username already exists!' ) ); 1253 1253 } 1254 1254 1255 if ( strlen( $user_login ) > 60 ) 1256 return new WP_Error( 'user_login', __( 'Please enter a username less than 60 characters.' ) ); 1257 1255 1258 // If a nicename is provided, remove unsafe user characters before 1256 1259 // using it. Otherwise build a nicename from the user_login. 1257 1260 if ( ! empty( $userdata['user_nicename'] ) ) {