Users: After [33766], don't reset the password when clicking "Show Password" and then "Cancel" on Add New User screen.
Props smerriman for reporting. Fixes #37902. See #33419. git-svn-id: https://develop.svn.wordpress.org/trunk@38494 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b024ec7c46
commit
c43b1d16ae
|
@ -260,9 +260,11 @@
|
||||||
|
|
||||||
resetToggle();
|
resetToggle();
|
||||||
|
|
||||||
|
if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) {
|
||||||
// Clear password field to prevent update
|
// Clear password field to prevent update
|
||||||
$pass1.val( '' ).trigger( 'pwupdate' );
|
$pass1.val( '' ).trigger( 'pwupdate' );
|
||||||
$submitButtons.prop( 'disabled', false );
|
$submitButtons.prop( 'disabled', false );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$pass1Row.closest( 'form' ).on( 'submit', function () {
|
$pass1Row.closest( 'form' ).on( 'submit', function () {
|
||||||
|
|
Loading…
Reference in New Issue