[wp-trac] [WordPress Trac] #40966: Double clicking the Update plugins-button gives... interesting experience!

WordPress Trac noreply at wordpress.org
Mon Apr 17 18:12:27 UTC 2023


#40966: Double clicking the Update plugins-button gives... interesting experience!
-------------------------------------------------+-------------------------
 Reporter:  bitnissen                            |       Owner:
                                                 |  giuliapierbon
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.3
Component:  Upgrade/Install                      |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  shiny-updates good-first-bug has-    |     Focuses:
  patch needs-refresh                            |
-------------------------------------------------+-------------------------

Comment (by simonemanfre):

 @giuliapierbon I have attached new code to prevent items being added to
 the update queue again when the user click the update button several
 times.

 To do this I added a new class "is-enqueued" the first time the update is
 launched for each element, if the user click again on the update button I
 check if that class is already present and do not add it back to the
 queue.

 The class is then removed in the event of a successful or failed update of
 each plugin.

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


More information about the wp-trac mailing list