Ticket #33167: 33167.diff
File 33167.diff, 3.2 KB (added by , 9 years ago) |
---|
-
wp-login.php
652 652 <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off"> 653 653 <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" /> 654 654 655 <p class="user-pass1-wrap"> 656 <label for="pass1"><?php _e( 'New password' ) ?></label> 657 </p> 655 <div class="user-pass1-wrap"> 656 <p> 657 <label for="pass1"><?php _e( 'New password' ) ?></label> 658 </p> 658 659 659 <div class="wp-pwd">660 660 <span class="password-input-wrapper"> 661 661 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" /> 662 662 </span> 663 <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' ); ?>"> 664 <span class="dashicons dashicons-hidden"></span> 665 <span class="text"><?php _e( 'Hide' ); ?></span> 666 </button> 663 667 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 664 668 </div> 665 669 … … 668 672 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> 669 673 </p> 670 674 675 <div class="pw-weak"> 676 <p><?php _e( 'Confirm Password' ); ?></p> 677 <label> 678 <input type="checkbox" name="pw_weak" class="pw-checkbox" /> 679 <?php _e( 'Confirm use of weak password' ); ?> 680 </label> 681 </div> 682 671 683 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 672 684 <br class="clear" /> 673 685 -
wp-admin/css/login.css
213 213 font-family: sans-serif; 214 214 } 215 215 216 .login-action-rp input[type="text"] { 216 .login-action-rp input[type="text"], 217 .login-action-rp input[type="password"] { 217 218 -webkit-box-shadow: none; 218 219 box-shadow: none; 219 220 margin: 0; -
wp-admin/js/user-profile.js
85 85 86 86 if ( passStrength.className ) { 87 87 $pass1.add( $pass1Text ).addClass( passStrength.className ); 88 if ( 'short' === passStrength.className || 'bad' === passStrength.className) {88 if ( $(passStrength).is('.short, .bad') ) { 89 89 if ( ! $weakCheckbox.prop( 'checked' ) ) { 90 90 $submitButtons.prop( 'disabled', true ); 91 91 } … … 153 153 $cancelButton; 154 154 155 155 $pass1Row = $('.user-pass1-wrap'); 156 $pass1Label = $pass1Row.find(' thlabel').attr( 'for', 'pass1-text' );156 $pass1Label = $pass1Row.find('label').attr( 'for', 'pass1-text' ); 157 157 158 158 // hide this 159 159 $('.user-pass2-wrap').hide(); 160 160 161 $submitButton = $( '#submit ' ).on( 'click', function () {161 $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { 162 162 updateLock = false; 163 163 }); 164 164