Make WordPress Core


Ignore:
Timestamp:
04/08/2022 05:38:55 PM (2 years ago)
Author:
joedolson
Message:

Users: Use autocomplete values on user profiles.

Assign appropriate autocomplete values for new and edited user, user email, and password fields.

Props clonemykey, sabernhardt, WraithKenny, bookdude13, konradyoast.
Fixes #43886, #52714.

File:
1 edited

Legend:

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

    r53102 r53111  
    639639                                    <div class="wp-pwd hide-if-js">
    640640                                        <span class="password-input-wrapper">
    641                                             <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
     641                                            <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="new-password" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
    642642                                        </span>
    643643                                        <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
     
    656656                                <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
    657657                                <td>
    658                                 <input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="off" aria-describedby="pass2-desc" />
     658                                <input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="new-password" aria-describedby="pass2-desc" />
    659659                                    <?php if ( IS_PROFILE_PAGE ) : ?>
    660660                                        <p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.