From d236d4f3e1f0b30c1dd536d58191d7eec943a943 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 27 Feb 2008 19:36:02 +0000 Subject: [PATCH] remove debug cruft and set swfupload max file size to match php ini. Props andy. see #5911 git-svn-id: http://svn.automattic.com/wordpress/trunk@7067 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 1 + wp-includes/js/swfupload/handlers.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 68771734cd..e242fb4c7c 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -616,6 +616,7 @@ jQuery(function($){ "auth_cookie" : "", "type" : "media" }, + file_size_limit : "b", swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available degraded_element_id : "html-upload-ui", // when swfupload is unavailable swfupload_loaded_handler : uploadLoaded, diff --git a/wp-includes/js/swfupload/handlers.js b/wp-includes/js/swfupload/handlers.js index 112c7e1a75..6253ef7b2a 100644 --- a/wp-includes/js/swfupload/handlers.js +++ b/wp-includes/js/swfupload/handlers.js @@ -140,7 +140,6 @@ function fileDialogComplete(num_files_queued) { } function uploadError(fileObj, error_code, message) { -alert(message);return; // first the file specific error if ( error_code == SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL ) { wpFileError(fileObj, swfuploadL10n.missing_upload_url);