Ticket #33167: 33167.4.diff
File 33167.4.diff, 4.4 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; 214 font-size: 15px; 213 215 } 214 216 217 .login-action-rp .wp-pwd .input, 218 .login-action-rp .wp-pwd #pass-strength-result{ 219 width: 69%; 220 } 221 222 .login-action-rp .wp-pwd{ 223 margin-top: 5px; 224 } 225 226 .login-action-rp .pw-weak{ 227 margin-bottom: 10px; 228 } 229 215 230 .login #pass-strength-result { 216 231 font-weight: 600; 217 232 margin: -1px 5px 16px 0; -
home/umesh/Wordpress-core/trunk/wp-admin/css/forms.css
235 235 236 236 :-moz-placeholder, 237 237 .wp-core-ui :-moz-placeholder { 238 238 color: #a9a9a9; 239 239 } 240 240 241 241 .form-invalid input, .form-invalid input:focus, … … 242 242 .form-invalid select, .form-invalid select:focus { 243 243 border-color: #dc3232 !important; 244 244 -webkit-box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); 245 245 box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); 246 246 } 247 247 248 248 .form-table .form-required.form-invalid td:after { … … 1270 1270 top: 0; 1271 1271 } 1272 1272 1273 .login-action-rp .wp-pwd button.button{ 1274 background: #f7f7f7 none repeat scroll 0 0; 1275 border:1px solid #ccc; 1276 padding: 0 10px; 1277 } 1278 1279 .login-action-rp .wp-pwd button.button { 1280 right: 30px; 1281 } 1282 1273 1283 .wp-pwd button.button:hover, 1274 1284 .wp-pwd button.button:focus, 1275 1285 .wp-pwd button.button:active { -
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