Passwords: Hide weak password confirmation checkbox when password strength improves.

Props subharanjan for initial patch.
Fixes #34950.
Built from https://develop.svn.wordpress.org/trunk@35870


git-svn-id: http://core.svn.wordpress.org/trunk@35834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2015-12-11 21:54:27 +00:00
parent a2c79a2fc6
commit 5fa8ea8c6b
3 changed files with 6 additions and 2 deletions

View File

@ -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 );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35869';
$wp_version = '4.5-alpha-35870';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.