diff --git a/wp-includes/js/plupload/wp-plupload.js b/wp-includes/js/plupload/wp-plupload.js index 86a1919f47..dc91674930 100644 --- a/wp-includes/js/plupload/wp-plupload.js +++ b/wp-includes/js/plupload/wp-plupload.js @@ -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,