Set autocomplete off for password files on the profile pages. Fixes #5006.

git-svn-id: https://develop.svn.wordpress.org/trunk@9347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-10-25 21:41:55 +00:00
parent f768084e6c
commit fc475f27b2
2 changed files with 4 additions and 5 deletions

View File

@ -62,7 +62,6 @@ function profile_js ( ) {
}
$(document).ready( function() {
$('#pass1,#pass2').attr('autocomplete','off');
$('#nickname').blur(update_nickname);
$('#pass1').keyup( check_pass_strength );
$('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
@ -350,8 +349,8 @@ if ( $show_password_fields ) :
?>
<tr>
<th><label for="pass1"><?php _e('New Password'); ?></label></th>
<td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
<input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
<td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
<input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
<?php if ( $is_profile_page ): ?>
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
<p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>

View File

@ -462,9 +462,9 @@ foreach ( $wp_user_search->get_results() as $userid ) {
<?php if ( apply_filters('show_password_fields', true) ) : ?>
<tr class="form-field form-required">
<th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th>
<td><input name="pass1" type="password" id="pass1" />
<td><input name="pass1" type="password" id="pass1" autocomplete="off" />
<br />
<input name="pass2" type="password" id="pass2" /></td>
<input name="pass2" type="password" id="pass2" autocomplete="off"/></td>
</tr>
<?php endif; ?>