Changeset 4693

Show
Ignore:
Timestamp:
01/07/07 07:52:57 (2 years ago)
Author:
markjaquith
Message:

Don't re-validate the username when updating the profile (as it can't be edited anyway). Props killer-g. fixes #3531

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r4687 r4693  
    498498        $user->user_pass = $pass1; 
    499499 
    500     if ( !validate_username( $user->user_login ) ) 
     500    if ( !$update && !validate_username( $user->user_login ) ) 
    501501        $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is invalid.  Please enter a valid username.' )); 
    502502