Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-includes/js/plupload/handlers.dev.js

    r19591 r20487  
    4545    if ( max > hundredmb && file.size > hundredmb ) {
    4646        setTimeout(function(){
    47             if ( file.status == 2 && file.loaded == 0 ) { // not uploading
     47            var done;
     48
     49            if ( file.status < 3 && file.loaded == 0 ) { // not uploading
    4850                wpFileError(file, pluploadL10n.big_upload_failed.replace('%1$s', '<a class="uploader-html" href="#">').replace('%2$s', '</a>'));
    49 
    50                 if ( up.current && up.current.file.id == file.id && up.current.xhr.abort )
    51                     up.current.xhr.abort();
     51                up.stop(); // stops the whole queue
     52                up.removeFile(file);
     53                up.start(); // restart the queue
    5254            }
    5355        }, 10000); // wait for 10 sec. for the file to start uploading
Note: See TracChangeset for help on using the changeset viewer.