Changeset 14428 for trunk/wp-admin/includes/user.php
- Timestamp:
- 05/03/2010 11:46:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r14422 r14428 159 159 $user->user_pass = $pass1; 160 160 161 if ( !$update && !validate_username( $user->user_login) )162 $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is invalid . Please enter a valid username.' ));161 if ( !$update && isset( $_POST['user_login'] ) && !validate_username( $_POST['user_login'] ) ) 162 $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' )); 163 163 164 164 if ( !$update && username_exists( $user->user_login ) )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)