WordPress.org

Make WordPress Core

Ticket #24364: 24364.3.diff

File 24364.3.diff, 1.7 KB (added by markjaquith, 12 months ago)

With HTML comments so people don't wonder WTF is going on.

  • wp-admin/user-edit.php

    if ( $show_password_fields ) : 
    376376?> 
    377377<tr id="password"> 
    378378        <th><label for="pass1"><?php _e('New Password'); ?></label></th> 
    379         <td><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> 
     379        <td> 
     380                <input class="hidden" /><!-- #24364 workaround --> 
     381                <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> 
    380382        </td> 
    381383</tr> 
    382384<tr> 
  • wp-admin/user-new.php

    foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam 
    341341<?php if ( apply_filters('show_password_fields', true) ) : ?> 
    342342        <tr class="form-field form-required"> 
    343343                <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th> 
    344                 <td><input name="pass1" type="password" id="pass1" autocomplete="off" /> 
     344                <td> 
     345                        <input class="hidden" /><!-- #24364 workaround --> 
     346                        <input name="pass1" type="password" id="pass1" autocomplete="off" /> 
    345347                </td> 
    346348        </tr> 
    347349        <tr class="form-field form-required">