Ticket #33167: 33167.3.diff
File 33167.3.diff, 3.3 KB (added by , 9 years ago) |
---|
-
home/umesh/Wordpress-core/trunk/wp-login.php
661 661 <span class="password-input-wrapper"> 662 662 <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" /> 663 663 </span> 664 <button type="button" class="button button-secondary 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' ); ?>"> 665 <span class="dashicons dashicons-hidden"></span> 666 <span class="text"><?php _e( 'Hide' ); ?></span> 667 </button> 664 668 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 665 669 </div> 666 670 </div> … … 670 674 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> 671 675 </p> 672 676 677 <div class="pw-weak"> 678 <label> 679 <input type="checkbox" name="pw_weak" class="pw-checkbox" /> 680 <?php _e( 'Confirm use of weak password' ); ?> 681 </label> 682 </div> 683 673 684 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 674 685 <br class="clear" /> 675 686 -
home/umesh/Wordpress-core/trunk/wp-admin/css/login.css
206 206 font-family: sans-serif; 207 207 } 208 208 209 .login-action-rp input[type="text"] { 209 .login-action-rp input[type="text"], 210 .login-action-rp input[type="password"] { 210 211 -webkit-box-shadow: none; 211 212 box-shadow: none; 212 213 margin: 0; 213 214 } 214 215 216 .login-action-rp .wp-pwd .input, 217 .login-action-rp .wp-pwd #pass-strength-result{ 218 width: 70%; 219 } 220 221 .login-action-rp .wp-pwd{ 222 margin-top: 5px; 223 } 224 225 .login-action-rp .pw-weak{ 226 margin-bottom: 10px; 227 } 228 215 229 .login #pass-strength-result { 216 230 font-weight: 600; 217 231 margin: -1px 5px 16px 0; -
home/umesh/Wordpress-core/trunk/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 } … … 158 158 $cancelButton; 159 159 160 160 $pass1Row = $('.user-pass1-wrap'); 161 $pass1Label = $pass1Row.find(' thlabel').attr( 'for', 'pass1-text' );161 $pass1Label = $pass1Row.find('label').attr( 'for', 'pass1-text' ); 162 162 163 163 // hide this 164 164 $('.user-pass2-wrap').hide(); 165 165 166 $submitButton = $( '#submit ' ).on( 'click', function () {166 $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { 167 167 updateLock = false; 168 168 }); 169 169