Make WordPress Core


Ignore:
Timestamp:
06/23/2023 11:07:10 PM (15 months ago)
Author:
joedolson
Message:

Upgrade/Install: Show/hide toggle on password fields.

Add a show/hide toggle for new passwords in initial user creation and database access during install and setup process using the same model as on user profiles. Add a new password toggle script. Change setup config table to two columns, matching the install table layout.

Props xmarcos, matt, markjaquith, nazgul, akbigdog, intoxination, rob1n, MichaelH, empireoflight, rmccue, markoheijnen, r0uter, amansurov, bi0xid, DrewAPicture, Narthur, wpnook, markparnell, costdev, clorith, ryokuhi, sabernhardt, bgoewert, ironprogrammer, adeltahri, joedolson, mukesh27, audrasjb, sergeybiryukov.
Fixes #3534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r55988 r56008  
    644644                                    <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button>
    645645                                    <div class="wp-pwd hide-if-js">
    646                                         <span class="password-input-wrapper">
     646                                        <div class="password-input-wrapper">
    647647                                            <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="new-password" spellcheck="false" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
    648                                         </span>
     648                                            <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
     649                                        </div>
    649650                                        <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    650651                                            <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
     
    655656                                            <span class="text"><?php _e( 'Cancel' ); ?></span>
    656657                                        </button>
    657                                         <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
    658658                                    </div>
    659659                                </td>
Note: See TracChangeset for help on using the changeset viewer.