Make WordPress Core

Ticket #52256: 52256.patch

File 52256.patch, 792 bytes (added by dilipbheda, 4 years ago)
  • src/wp-admin/user-new.php

    diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php
    index 76195c3f63..92cfd5e87d 100644
    a b if ( current_user_can( 'create_users' ) ) { 
    561561                <td>
    562562                        <input class="hidden" value=" " /><!-- #24364 workaround -->
    563563                        <button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Generate password' ); ?></button>
    564                         <div class="wp-pwd">
     564                        <div class="wp-pwd hide-if-js">
    565565                                <?php $initial_password = wp_generate_password( 24 ); ?>
    566566                                <span class="password-input-wrapper">
    567567                                        <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />