Make WordPress Core


Ignore:
Timestamp:
07/03/2013 09:24:02 PM (13 years ago)
Author:
markjaquith
Message:

Combat Chrome's insanely aggressive user/pass autofilling ಠ_ಠ

Chrome now ignores autocomplete="off" in <input>, so this hack uses
a hidden, non-named, non-empty input, right before the password field.

see #24364. props azaozz, nacin, bobbingwide, aaroncampbell.

File:
1 edited

Legend:

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

    r24551 r24552  
    378378        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    379379        <td>
     380                <input class="hidden" value=" " /><!-- #24364 workaround -->
    380381                <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span>
    381382        </td>
Note: See TracChangeset for help on using the changeset viewer.