diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php
index af1d72193d..23cbe67936 100644
a
|
b
|
switch ( $action ) { |
640 | 640 | <tr id="password" class="user-pass1-wrap"> |
641 | 641 | <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> |
642 | 642 | <td> |
643 | | <input class="hidden" value=" " /><!-- #24364 workaround --> |
| 643 | <input type="hidden" value=" " /><!-- #24364 workaround --> |
644 | 644 | <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button> |
645 | 645 | <div class="wp-pwd hide-if-js"> |
646 | 646 | <span class="password-input-wrapper"> |
diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php
index 0d779e21c1..055ccdd7a1 100644
a
|
b
|
if ( current_user_can( 'create_users' ) ) { |
566 | 566 | </label> |
567 | 567 | </th> |
568 | 568 | <td> |
569 | | <input class="hidden" value=" " /><!-- #24364 workaround --> |
| 569 | <input type="hidden" value=" " /><!-- #24364 workaround --> |
570 | 570 | <button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Generate password' ); ?></button> |
571 | 571 | <div class="wp-pwd"> |
572 | 572 | <?php $initial_password = wp_generate_password( 24 ); ?> |