Make WordPress Core

Changeset 23165


Ignore:
Timestamp:
12/10/2012 11:25:03 PM (11 years ago)
Author:
nacin
Message:

Ignore failed uploads. props koopersmith. fixes #22849. for the 3.5 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/js/plupload/wp-plupload.js

    r23100 r23165  
    151151                var attributes, image;
    152152
     153                // Ignore failed uploads.
     154                if ( plupload.FAILED === file.status )
     155                    return;
     156
    153157                // Generate attributes for a new `Attachment` model.
    154158                attributes = _.extend({
Note: See TracChangeset for help on using the changeset viewer.