Changeset 31900
- Timestamp:
- 03/26/2015 04:29:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r31897 r31900 287 287 var job = wp.updates.updateQueue.shift(); 288 288 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 ); 301 290 }; 302 291
Note: See TracChangeset
for help on using the changeset viewer.