Ticket #35707: 35707.2.patch
File 35707.2.patch, 1.8 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/admin/user-profile.js
33 33 } 34 34 35 35 if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) { 36 $pass1.attr( 'type', 'text' ); 36 /* Starting visible */ 37 $toggleButton.trigger( 'click' ); 37 38 } else { 38 $ toggleButton.trigger( 'click' );39 $pass1.attr( 'type', 'password' ); 39 40 } 40 41 41 42 // Once zxcvbn loads, passwords strength is known. -
src/wp-admin/install.php
142 142 <div class="wp-pwd"> 143 143 <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> 144 144 <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" /> 145 <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( 'Hidepassword' ); ?>">146 <span class="dashicons dashicons- hidden"></span>147 <span class="text"><?php _e( ' Hide' ); ?></span>145 <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="1" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> 146 <span class="dashicons dashicons-visibility"></span> 147 <span class="text"><?php _e( 'Show' ); ?></span> 148 148 </button> 149 149 <div id="pass-strength-result" aria-live="polite"></div> 150 150 </div>