Make WordPress Core


Ignore:
Timestamp:
07/27/2015 09:24:36 PM (10 years ago)
Author:
wonderboymusic
Message:

Passwords UI: clean up the new JS in wp-admin/js/user-profile.js.

Instead of wrapping #pass1 in a <span> dynamically, add the <span> to the HTML in PHP. It currently has no styling.

Fixes #33145.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r33353 r33450  
    656656        <label for="pass1"><?php _e('New password') ?></label><br />
    657657        <div class="wp-pwd">
    658             <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
     658            <span class="password-input-wrapper">
     659                <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
     660            </span>
    659661            <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
    660662        </div>
Note: See TracChangeset for help on using the changeset viewer.