diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js
index 55eb0fbf95..1afe27d81a 100644
a
|
b
|
|
515 | 515 | |
516 | 516 | if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { |
517 | 517 | $pluginRow = $( 'tr[data-plugin="' + response.plugin + '"]' ) |
518 | | .removeClass( 'update' ) |
| 518 | .removeClass( 'update is-enqueued' ) |
519 | 519 | .addClass( 'updated' ); |
520 | 520 | $updateMessage = $pluginRow.find( '.update-message' ) |
521 | 521 | .removeClass( 'updating-message notice-warning' ) |
… |
… |
|
585 | 585 | ); |
586 | 586 | |
587 | 587 | if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { |
| 588 | $pluginRow = $( 'tr[data-plugin="' + response.plugin + '"]' ).removeClass( 'is-enqueued' ); |
| 589 | |
588 | 590 | if ( response.plugin ) { |
589 | 591 | $message = $( 'tr[data-plugin="' + response.plugin + '"]' ).find( '.update-message' ); |
590 | 592 | } else { |
… |
… |
|
2468 | 2470 | return; |
2469 | 2471 | } |
2470 | 2472 | |
| 2473 | // Don't add items to the update queue again, even if the user clicks the update button several times. |
| 2474 | if ( 'update-selected' === bulkAction && $itemRow.hasClass( 'is-enqueued' ) ) { |
| 2475 | return; |
| 2476 | } |
| 2477 | |
| 2478 | $itemRow.addClass( 'is-enqueued' ) |
| 2479 | |
2471 | 2480 | // Add it to the queue. |
2472 | 2481 | wp.updates.queue.push( { |
2473 | 2482 | action: action, |