WordPress.org

Make WordPress Core

Changeset 33980


Ignore:
Timestamp:
09/09/2015 05:31:40 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Merges [33766] to the 4.3 branch.

Props peterwilsoncc.
Fixes #33419 for 4.3.1.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-admin/js/user-profile.js

    r33625 r33980  
    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.