WordPress.org

Make WordPress Core

Ticket #52714: 52714.diff

File 52714.diff, 2.3 KB (added by sabernhardt, 9 months ago)
  • src/wp-admin/user-new.php

     
    505505<table class="form-table" role="presentation">
    506506        <tr class="form-field form-required">
    507507                <th scope="row"><label for="user_login"><?php _e( 'Username' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    508                 <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
     508                <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" autocomplete="off" maxlength="60" /></td>
    509509        </tr>
    510510        <tr class="form-field form-required">
    511511                <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
     
    564564                        <div class="wp-pwd">
    565565                                <?php $initial_password = wp_generate_password( 24 ); ?>
    566566                                <span class="password-input-wrapper">
    567                                         <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
     567                                        <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="new-password" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    568568                                </span>
    569569                                <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    570570                                        <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
     
    577577        <tr class="form-field form-required user-pass2-wrap hide-if-js">
    578578                <th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    579579                <td>
    580                 <input name="pass2" type="password" id="pass2" autocomplete="off" aria-describedby="pass2-desc" />
     580                <input name="pass2" type="password" id="pass2" autocomplete="new-password" aria-describedby="pass2-desc" />
    581581                <p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p>
    582582                </td>
    583583        </tr>