Changeset 33033
- Timestamp:
- 07/01/2015 06:12:04 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/user-profile.js
r33031 r33033 17 17 ; 18 18 19 var generatePassword = function() { 20 pw_field.val( pw_field.data( 'pw' ) ); 21 pw_field.trigger( 'propertychange' ); 22 pw_field.attr( 'type', 'text' ).focus(); 23 pw_field[0].setSelectionRange(100, 100); 19 var generatePassword = window.generatePassword = function() { 20 if ( typeof zxcvbn !== 'function' ) { 21 setTimeout( generatePassword, 50 ); 22 } else { 23 pw_field.val( pw_field.data( 'pw' ) ); 24 pw_field.trigger( 'propertychange' ); 25 pw_field.attr( 'type', 'text' ).focus(); 26 pw_field[0].setSelectionRange(100, 100); 27 } 24 28 }; 25 29 -
trunk/src/wp-admin/user-new.php
r33023 r33033 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" value="<?php echo esc_attr( $initial_password ); ?>"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 ); ?>" /> 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>
Note: See TracChangeset
for help on using the changeset viewer.