diff --git a/src/js/_enqueues/admin/user-profile.js b/src/js/_enqueues/admin/user-profile.js index c2a403fe38..705bf8fb57 100644 --- a/src/js/_enqueues/admin/user-profile.js +++ b/src/js/_enqueues/admin/user-profile.js @@ -43,6 +43,9 @@ // Once zxcvbn loads, passwords strength is known. $( '#pw-weak-text-label' ).text( __( 'Confirm use of weak password' ) ); + + // Focus the password field. + $( $pass1 ).trigger( 'focus' ); } function bindPass1() { diff --git a/src/wp-login.php b/src/wp-login.php index 7dd2c19809..a0f36f5236 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -992,7 +992,7 @@ switch ( $action ) { </p> <?php - login_footer( 'user_pass' ); + login_footer( 'pass1' ); break; case 'register':