Ignore failed uploads. props koopersmith. fixes #22849

git-svn-id: http://core.svn.wordpress.org/trunk@23162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2012-12-10 22:58:28 +00:00
parent 3b9f156de7
commit 0e5fcefe03
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,