diff --git a/src/wp-includes/js/plupload/handlers.js b/src/wp-includes/js/plupload/handlers.js index 1396a2d3be..43072711f5 100644 --- a/src/wp-includes/js/plupload/handlers.js +++ b/src/wp-includes/js/plupload/handlers.js @@ -328,15 +328,24 @@ function uploadError(fileObj, errorCode, message, uploader) { } } -function uploadSizeError( up, file, over100mb ) { - var message; +function uploadSizeError( up, file ) { + var message, errorDiv; - if ( over100mb ) - message = pluploadL10n.big_upload_queued.replace('%s', file.name) + ' ' + pluploadL10n.big_upload_failed.replace('%1$s', '').replace('%2$s', ''); - else - message = pluploadL10n.file_exceeds_size_limit.replace('%s', file.name); + message = pluploadL10n.file_exceeds_size_limit.replace('%s', file.name); - jQuery('#media-items').append('
' + message + '