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:
parent
3b9f156de7
commit
0e5fcefe03
|
@ -150,6 +150,10 @@ window.wp = window.wp || {};
|
||||||
_.each( files, function( file ) {
|
_.each( files, function( file ) {
|
||||||
var attributes, image;
|
var attributes, image;
|
||||||
|
|
||||||
|
// Ignore failed uploads.
|
||||||
|
if ( plupload.FAILED === file.status )
|
||||||
|
return;
|
||||||
|
|
||||||
// Generate attributes for a new `Attachment` model.
|
// Generate attributes for a new `Attachment` model.
|
||||||
attributes = _.extend({
|
attributes = _.extend({
|
||||||
file: file,
|
file: file,
|
||||||
|
|
Loading…
Reference in New Issue