Set autocomplete off for password files on the profile pages. Fixes #5006.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c1f7aeb0b9
commit
9133214dba
|
@ -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 ! " ? $ % ^ & ).'); ?></p>
|
||||
|
|
|
@ -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; ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue