Make WordPress Core

Changeset 4693


Ignore:
Timestamp:
01/07/2007 07:52:57 AM (18 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.