Passwords: Re-enable password fields before submitting the form.
Avoids an PHP undefined notice when creating new users. Fixes #33699. git-svn-id: https://develop.svn.wordpress.org/trunk@35733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6f310a775d
commit
a32d38c9f0
@ -266,6 +266,8 @@
|
|||||||
$pass1Row.closest('form').on( 'submit', function () {
|
$pass1Row.closest('form').on( 'submit', function () {
|
||||||
updateLock = false;
|
updateLock = false;
|
||||||
|
|
||||||
|
$pass1.prop( 'disabled', false );
|
||||||
|
$pass2.prop( 'disabled', false );
|
||||||
$pass2.val( $pass1.val() );
|
$pass2.val( $pass1.val() );
|
||||||
$pass1Wrap.removeClass( 'show-password' );
|
$pass1Wrap.removeClass( 'show-password' );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user