Make WordPress Core

Changeset 57696

Timestamp:
02/22/2024 05:56:09 PM (6 months ago)
Author:
swissspidy
Message:

Upgrade/Install: Fix upgrade count decrement on Updates page.

Fixes a JavaScript error that caused the update count bubble not to decrement when updating a plugin.

Props nendeb55, swissspidy.
Fixes #60589.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/updates.js

    r57615 r57696  
    32613261            }
    32623262
    3263             if ( 'undefined' === typeof message.action || 'undefined' === typeof message.data.slug ) {
     3263            if ( 'undefined' === typeof message.action ) {
    32643264                return;
    32653265            }
     
    32753275                case 'install-plugin':
    32763276                case 'update-plugin':
     3277
     3278
     3279
     3280
    32773281                    message.data = wp.updates._addCallbacks( message.data, message.action );
    32783282
Note: See TracChangeset for help on using the changeset viewer.