Ticket #33032: 33032-2.patch
File 33032-2.patch, 6.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/install.php
140 140 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Show password' ); ?></button> 141 141 <div class="wp-pwd hide-if-js"> 142 142 <?php $initial_password = wp_generate_password( 24 ); ?> 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 ); ?>" />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-labelledby="pass-strength-result" /> 144 144 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 145 145 <span class="dashicons dashicons-visibility"></span> 146 <span class="text"><?php _e( 'Hide ' ); ?></span>146 <span class="text"><?php _e( 'Hide password' ); ?></span> 147 147 </button> 148 <div id="pass-strength-result" ></div>148 <div id="pass-strength-result" aria-live="polite"></div> 149 149 </div> 150 150 <p><span class="description hide-if-no-js"><?php _e( 'A password reset link will be sent to you via email.' ); ?></span></p> 151 151 </td> -
src/wp-admin/user-edit.php
464 464 <input class="hidden" value=" " /><!-- #24364 workaround --> 465 465 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Generate new password' ); ?></button> 466 466 <div class="wp-pwd hide-if-js"> 467 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" />467 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-labelledby="pass-strength-result" /> 468 468 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 469 469 <span class="dashicons dashicons-visibility"></span> 470 <span class="text"><?php _e( 'Hide ' ); ?></span>470 <span class="text"><?php _e( 'Hide password' ); ?></span> 471 471 </button> 472 <div style="display:none" id="pass-strength-result" ></div>472 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> 473 473 </div> 474 474 </td> 475 475 </tr> -
src/wp-admin/user-new.php
402 402 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Show password' ); ?></button> 403 403 <div class="wp-pwd hide-if-js"> 404 404 <?php $initial_password = wp_generate_password( 24 ); ?> 405 <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" />405 <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-labelledby="pass-strength-result" /> 406 406 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 407 407 <span class="dashicons dashicons-visibility"></span> 408 <span class="text"><?php _e( 'Hide ' ); ?></span>408 <span class="text"><?php _e( 'Hide password' ); ?></span> 409 409 </button> 410 <div style="display:none" id="pass-strength-result" ></div>410 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> 411 411 </div> 412 412 <p><span class="description"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></span></p> 413 413 </td> -
src/wp-includes/script-loader.php
365 365 366 366 $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 ); 367 367 did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array( 368 'short' => _x( 'Very weak ', 'password strength' ),369 'bad' => _x( 'Weak ', 'password strength' ),370 'good' => _x( 'Medium ', 'password strength' ),371 'strong' => _x( 'Strong ', 'password strength' ),372 'mismatch' => _x( ' Mismatch', 'password mismatch' ),368 'short' => _x( 'Very weak password', 'password strength' ), 369 'bad' => _x( 'Weak password', 'password strength' ), 370 'good' => _x( 'Medium password', 'password strength' ), 371 'strong' => _x( 'Strong password', 'password strength' ), 372 'mismatch' => _x( 'Passwords Mismatch', 'password mismatch' ), 373 373 ) ); 374 374 375 375 $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 ); 376 376 did_action( 'init' ) && $scripts->localize( 'user-profile', 'userProfileL10n', array( 377 'show' => __( 'Show ' ),378 'hide' => __( 'Hide ' ),377 'show' => __( 'Show password' ), 378 'hide' => __( 'Hide password' ), 379 379 ) ); 380 380 381 381 $scripts->add( 'language-chooser', "/wp-admin/js/language-chooser$suffix.js", array( 'jquery' ), false, 1 ); -
src/wp-login.php
655 655 <p class="user-pass1-wrap"> 656 656 <label for="pass1"><?php _e('New password') ?></label><br /> 657 657 <div class="wp-pwd"> 658 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" />659 <div id="pass-strength-result" class="hide-if-no-js" ><?php _e( 'Strength indicator' ); ?></div>658 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-labelledby="pass-strength-result" /> 659 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 660 660 </div> 661 661 </p> 662 662 <p class="user-pass2-wrap">