Changeset 56009
- Timestamp:
- 06/24/2023 03:58:37 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/updates.js
r55359 r56009 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' ) … … 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' ); … … 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( {
Note: See TracChangeset
for help on using the changeset viewer.