From 410aa27b1dd939345c9f0764b414e726bb1cbe6c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 11 Dec 2015 21:53:29 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/user-profile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js index 525084483b..5ec77bc867 100644 --- a/src/wp-admin/js/user-profile.js +++ b/src/wp-admin/js/user-profile.js @@ -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 );