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
This commit is contained in:
parent
b310e6a620
commit
d236d4f3e1
|
@ -616,6 +616,7 @@ jQuery(function($){
|
|||
"auth_cookie" : "<?php echo $_COOKIE[AUTH_COOKIE]; ?>",
|
||||
"type" : "media"
|
||||
},
|
||||
file_size_limit : "<?php echo wp_max_upload_size(); ?>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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue