WordPress.org

Make WordPress Core

Ticket #40302: 40302.diff

File 40302.diff, 704 bytes (added by donmhico, 13 months ago)

Patch to focus on new password field on reset password page.

  • src/js/_enqueues/admin/user-profile.js

    diff --git src/js/_enqueues/admin/user-profile.js src/js/_enqueues/admin/user-profile.js
    index 386f8ae593..bad0d8ec0c 100644
     
    4343
    4444                // Once zxcvbn loads, passwords strength is known.
    4545                $( '#pw-weak-text-label' ).html( userProfileL10n.warnWeak );
     46
     47                // Focus the password field.
     48                $($pass1Text).focus();
     49
    4650        }
    4751
    4852        function bindPass1() {
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 6c98ef3a77..de21d278f7 100644
    switch ( $action ) { 
    785785        </p>
    786786
    787787                <?php
    788                 login_footer( 'user_pass' );
     788                login_footer( 'pass1-text' );
    789789
    790790                break;
    791791