mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Passwords: Hide weak password confirmation checkbox when password strength improves.
Props subharanjan for initial patch. Fixes #34950. git-svn-id: https://develop.svn.wordpress.org/trunk@35870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -251,6 +251,10 @@
|
||||
$generateButton.show();
|
||||
$passwordWrapper.hide();
|
||||
|
||||
$weakRow.hide( 0, function () {
|
||||
$weakCheckbox.removeProp( 'checked' );
|
||||
} );
|
||||
|
||||
// Disable the inputs when hiding to prevent autofill and submission.
|
||||
$pass1.prop( 'disabled', true );
|
||||
$pass2.prop( 'disabled', true );
|
||||
|
||||
Reference in New Issue
Block a user