Make WordPress Core

Changeset 9347


Ignore:
Timestamp:
10/25/2008 09:41:55 PM (17 years ago)
Author:
westi
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r9233 r9347  
    6363
    6464    $(document).ready( function() {
    65         $('#pass1,#pass2').attr('autocomplete','off');
    6665        $('#nickname').blur(update_nickname);
    6766        $('#pass1').keyup( check_pass_strength );
     
    351350<tr>
    352351    <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    353     <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 />
    354         <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
     352    <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 />
     353        <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
    355354    <?php if ( $is_profile_page ): ?>
    356355        <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
  • trunk/wp-admin/users.php

    r9341 r9347  
    463463    <tr class="form-field form-required">
    464464        <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th>
    465         <td><input name="pass1" type="password" id="pass1" />
     465        <td><input name="pass1" type="password" id="pass1" autocomplete="off" />
    466466        <br />
    467         <input name="pass2" type="password" id="pass2" /></td>
     467        <input name="pass2" type="password" id="pass2" autocomplete="off"/></td>
    468468    </tr>
    469469<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.