From 8a33422bfc578bec66b3c9ae046f49fbd6a15f5a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 22 Sep 2015 03:56:25 +0000 Subject: [PATCH] Passwords: fix the markup on the Reset Password Form for `user-pass1` so the JavaScript operates properly. Props ldinclaux. See #33892. Fixes #33908. git-svn-id: https://develop.svn.wordpress.org/trunk@34371 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/user-profile.js | 9 +++++++-- src/wp-login.php | 18 ++++++++++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js index 02c22b6357..247f29c92b 100644 --- a/src/wp-admin/js/user-profile.js +++ b/src/wp-admin/js/user-profile.js @@ -190,11 +190,16 @@ } } ); - $passwordWrapper = $pass1Row.find('.wp-pwd').hide(); + $passwordWrapper = $pass1Row.find( '.wp-pwd' ); + $generateButton = $pass1Row.find( 'button.wp-generate-pw' ); bindToggleButton(); - $generateButton = $pass1Row.find( 'button.wp-generate-pw' ).show(); + if ( $generateButton.length ) { + $passwordWrapper.hide(); + } + + $generateButton.show(); $generateButton.on( 'click', function () { updateLock = true; diff --git a/src/wp-login.php b/src/wp-login.php index e267928eeb..5b3daaae79 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -652,15 +652,17 @@ case 'rp' :
-

- -

+
+

+ +

-
- - - -
+
+ + + +
+