WordPress.org

Make WordPress Core

Changeset 31900


Ignore:
Timestamp:
03/26/2015 04:29:09 PM (5 years ago)
Author:
jorbin
Message:

More clean up from removal of Shiny Plugin Installs

See #31773, #29820
Unprops Jorbin, Pento

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r31897 r31900  
    287287        var job = wp.updates.updateQueue.shift();
    288288
    289         /* This normally wouldn't be a switch, but is there since updates and installs
    290            originally were developed together. Kept as a switch to help with bringing
    291            installs back in and to preserve commit history. */
    292         switch ( job.type ) {
    293             case 'update-plugin':
    294                 wp.updates.updatePlugin( job.data.plugin, job.data.slug );
    295                 break;
    296             default:
    297                 window.console.log( 'Failed to exect queued update job.' );
    298                 window.console.log( job );
    299                 break;
    300         }
     289        wp.updates.updatePlugin( job.data.plugin, job.data.slug );
    301290    };
    302291
Note: See TracChangeset for help on using the changeset viewer.