Ticket #52714: 52714.diff
| File 52714.diff, 2.3 KB (added by , 5 years ago) |
|---|
-
src/wp-admin/user-new.php
505 505 <table class="form-table" role="presentation"> 506 506 <tr class="form-field form-required"> 507 507 <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> 509 509 </tr> 510 510 <tr class="form-field form-required"> 511 511 <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th> … … 564 564 <div class="wp-pwd"> 565 565 <?php $initial_password = wp_generate_password( 24 ); ?> 566 566 <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" /> 568 568 </span> 569 569 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 570 570 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 577 577 <tr class="form-field form-required user-pass2-wrap hide-if-js"> 578 578 <th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th> 579 579 <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" /> 581 581 <p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p> 582 582 </td> 583 583 </tr>