[wp-trac] [WordPress Trac] #63897: Generate Password button requires two clicks to update the password field on Add New User screen

WordPress Trac noreply at wordpress.org
Sat Aug 30 17:20:36 UTC 2025


#63897: Generate Password button requires two clicks to update the password field
on Add New User screen
-------------------------------------------------+-------------------------
 Reporter:  parthvataliya                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Users                                |     Version:  5.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-test-info dev-         |     Focuses:  javascript
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by siliconforks):

 Well, the proposed change fixes the issue, but it creates a new issue:
 there is now a delay between clicking the button and the generated
 password appearing in the password field, because there is a network
 round-trip occurring in between.  (This might not be noticeable if you are
 running WordPress on your local machine, but it will be if you are running
 it over a slow network connection.)

 It looks like the original issue (the issue requiring the button to be
 clicked twice) has been encountered before, on the "reset password" page,
 and fixed there (but not on the "add user" page).  See the comment in the
 code here:

 https://github.com/WordPress/wordpress-
 develop/blob/da59c19dcaae731f64c9f512d35157e356e25931/src/js/_enqueues/admin
 /user-profile.js#L533-L542

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63897#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list