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' :
-

- -

+
+

+ +

-
- - - -
+
+ + + +
+