Make WordPress Core

Changeset 35649


Ignore:
Timestamp:
11/16/2015 08:48:51 PM (11 years ago)
Author:
ocean90
Message:

Passwords: Only disable hidden password fields if they are really hidden.

Makes the password field on install and for password resets editable again. Both fields were accidentally set to disabled in [35603].

Props adamsilverstein, flixos90.
Fixes #33699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/user-profile.js

    r35603 r35649  
    196196                } );
    197197
    198                 // Disable the hidden inputs to prevent autofill and submission.
    199                 $pass1.prop( 'disabled', true );
    200                 $pass2.prop( 'disabled', true );
    201                 $pass1Text.prop( 'disabled', true );
     198                // Disable hidden inputs to prevent autofill and submission.
     199                if ( $pass1.is( ':hidden' ) ) {
     200                        $pass1.prop( 'disabled', true );
     201                        $pass2.prop( 'disabled', true );
     202                        $pass1Text.prop( 'disabled', true );
     203                }
    202204
    203205                $passwordWrapper = $pass1Row.find( '.wp-pwd' );
Note: See TracChangeset for help on using the changeset viewer.