mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
remove debug cruft and set swfupload max file size to match php ini. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7067 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
87b8a192c8
commit
e93de99379
@ -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…
x
Reference in New Issue
Block a user