Ignore failed uploads. props koopersmith. fixes #22849

git-svn-id: https://develop.svn.wordpress.org/trunk@23162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2012-12-10 22:58:28 +00:00
parent f2b89e27be
commit b7a4314cbc
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ window.wp = window.wp || {};
_.each( files, function( file ) {
var attributes, image;
// Ignore failed uploads.
if ( plupload.FAILED === file.status )
return;
// Generate attributes for a new `Attachment` model.
attributes = _.extend({
file: file,