Ticket #43886: 43886.2.diff
File 43886.2.diff, 6.0 KB (added by , 3 years ago) |
---|
-
src/wp-admin/install.php
140 140 <td> 141 141 <div class="wp-pwd"> 142 142 <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> 143 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete=" off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />143 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="new-password" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> 144 144 <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 145 145 <span class="dashicons dashicons-hidden"></span> 146 146 <span class="text"><?php _e( 'Hide' ); ?></span> … … 160 160 </label> 161 161 </th> 162 162 <td> 163 <input name="admin_password2" type="password" id="pass2" autocomplete=" off" />163 <input name="admin_password2" type="password" id="pass2" autocomplete="new-password" /> 164 164 </td> 165 165 </tr> 166 166 <tr class="pw-weak"> -
src/wp-admin/user-edit.php
638 638 <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button> 639 639 <div class="wp-pwd hide-if-js"> 640 640 <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" /> 642 642 </span> 643 643 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 644 644 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 655 655 <tr class="user-pass2-wrap hide-if-js"> 656 656 <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th> 657 657 <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" /> 659 659 <?php if ( IS_PROFILE_PAGE ) : ?> 660 660 <p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p> 661 661 <?php else : ?> -
src/wp-admin/user-new.php
565 565 <div class="wp-pwd"> 566 566 <?php $initial_password = wp_generate_password( 24 ); ?> 567 567 <span class="password-input-wrapper"> 568 <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" />568 <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" /> 569 569 </span> 570 570 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 571 571 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 578 578 <tr class="form-field form-required user-pass2-wrap hide-if-js"> 579 579 <th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th> 580 580 <td> 581 <input name="pass2" type="password" id="pass2" autocomplete=" off" aria-describedby="pass2-desc" />581 <input name="pass2" type="password" id="pass2" autocomplete="new-password" aria-describedby="pass2-desc" /> 582 582 <p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p> 583 583 </td> 584 584 </tr> -
src/wp-login.php
941 941 </p> 942 942 943 943 <div class="wp-pwd"> 944 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete=" off" aria-describedby="pass-strength-result" />944 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="new-password" aria-describedby="pass-strength-result" /> 945 945 946 946 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 947 947 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 956 956 957 957 <p class="user-pass2-wrap"> 958 958 <label for="pass2"><?php _e( 'Confirm new password' ); ?></label> 959 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete=" off" />959 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="new-password" /> 960 960 </p> 961 961 962 962 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>