WordPress.org

Make WordPress Core

Changeset 33766


Ignore:
Timestamp:
08/27/2015 12:10:39 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Prevent unintended password change after clicking "Generate Password" and then "Cancel" when editing a user profile.

props peterwilsoncc.
fixes #33419 for trunk.

File:
1 edited

Legend:

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

    r33625 r33766  
    204204            $generateButton.show();
    205205            $passwordWrapper.hide();
     206
     207            // Clear password field to prevent update
     208            $pass1.val( '' ).trigger( 'pwupdate' );
     209            $submitButtons.prop( 'disabled', false );
    206210        } );
    207211
Note: See TracChangeset for help on using the changeset viewer.