Make WordPress Core

Ticket #56776: 56776.1.patch

File 56776.1.patch, 1.2 KB (added by sabernhardt, 2 years ago)

removing empty fields

  • src/wp-admin/user-edit.php

     
    634634                                                        <tr id="password" class="user-pass1-wrap">
    635635                                                                <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
    636636                                                                <td>
    637                                                                         <input class="hidden" value=" " /><!-- #24364 workaround -->
    638637                                                                        <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button>
    639638                                                                        <div class="wp-pwd hide-if-js">
    640639                                                                                <span class="password-input-wrapper">
  • src/wp-admin/user-new.php

     
    566566                        </label>
    567567                </th>
    568568                <td>
    569                         <input class="hidden" value=" " /><!-- #24364 workaround -->
    570569                        <button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Generate password' ); ?></button>
    571570                        <div class="wp-pwd">
    572571                                <?php $initial_password = wp_generate_password( 24 ); ?>