Ticket #8296: 8296.2.diff
File 8296.2.diff, 3.1 KB (added by , 13 years ago) |
---|
-
wp-admin/admin-ajax.php
38 38 39 39 $core_actions_get = array( 40 40 'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache', 41 'autocomplete-user', 'dashboard-widgets', 'logged-in', 41 'autocomplete-user', 'dashboard-widgets', 'logged-in', 'get-random-password', 42 42 ); 43 43 44 44 $core_actions_post = array( -
wp-admin/css/wp-admin.dev.css
2946 2946 } 2947 2947 2948 2948 #submitpost #ajax-loading, 2949 #submitpost .ajax-loading { 2949 #submitpost .ajax-loading, 2950 #createuser .ajax-loading { 2950 2951 vertical-align: middle; 2951 2952 } 2952 2953 … … 4818 4819 width: 25em; 4819 4820 } 4820 4821 4822 #createuser .form-field input[type="button"] { 4823 width: auto; 4824 } 4825 4821 4826 /*------------------------------------------------------------------------------ 4822 4827 19.0 - Tools 4823 4828 ------------------------------------------------------------------------------*/ -
wp-admin/includes/ajax-actions.php
1801 1801 update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $dismissed ); 1802 1802 wp_die( 1 ); 1803 1803 } 1804 1805 function wp_ajax_get_random_password() { 1806 wp_die( wp_generate_password() ); 1807 } -
wp-admin/js/user-profile.dev.js
73 73 }); 74 74 }); 75 75 } 76 77 $('#auto_generate_password').click( function() { 78 var btn = $(this); 79 btn.siblings('img').css('visibility','visible'); 80 $.get( ajaxurl, { 81 action: 'get-random-password' 82 }, function( p ) { 83 btn.siblings('img').css('visibility','hidden'); 84 $('#pass1, #pass2').val( p ); 85 check_pass_strength(); 86 $('#send_password').prop('checked', true); 87 }); 88 }); 76 89 }); 77 90 78 91 })(jQuery); -
wp-admin/user-new.php
343 343 <tr class="form-field form-required"> 344 344 <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th> 345 345 <td><input name="pass1" type="password" id="pass1" autocomplete="off" /> 346 <span class="hide-if-no-js"><input class="button-secondary" type="button" id="auto_generate_password" value="<?php _e( 'Generate random password' ); ?>" /> <img class="ajax-loading" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ) ?>" /></span> 346 347 <br /> 347 348 <input name="pass2" type="password" id="pass2" autocomplete="off" /> 348 349 <br />