Fix silverlight uploading when not resizing files on the fly, props kurtpayne, see #18206
git-svn-id: http://svn.automattic.com/wordpress/trunk@18620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9d9d11f4e
commit
81871e05b4
|
@ -86,7 +86,7 @@ function setResize(r) {
|
||||||
uploader.settings.multipart_params.image_resize = true;
|
uploader.settings.multipart_params.image_resize = true;
|
||||||
} else {
|
} else {
|
||||||
uploader.settings.resize = {};
|
uploader.settings.resize = {};
|
||||||
uploader.settings.multipart_params.image_resize = null;
|
uploader.settings.multipart_params.image_resize = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -193,7 +193,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
// TODO: find out if we can use the plupload.full.js, it loads browserplus init JS from Yahoo
|
// TODO: find out if we can use the plupload.full.js, it loads browserplus init JS from Yahoo
|
||||||
$scripts->add( 'plupload-full', false, array('plupload', 'plupload-html5', 'plupload-flash', 'plupload-silverlight', 'plupload-html4'), '1.4.3.2');
|
$scripts->add( 'plupload-full', false, array('plupload', 'plupload-html5', 'plupload-flash', 'plupload-silverlight', 'plupload-html4'), '1.4.3.2');
|
||||||
|
|
||||||
$scripts->add( 'plupload-handlers', "/wp-includes/js/plupload/handlers$suffix.js", array('plupload-full', 'jquery'), '1.4.3.2');
|
$scripts->add( 'plupload-handlers', "/wp-includes/js/plupload/handlers$suffix.js", array('plupload-full', 'jquery'), '20110829');
|
||||||
$scripts->add_script_data( 'plupload-handlers', 'pluploadL10n', $uploader_l10n );
|
$scripts->add_script_data( 'plupload-handlers', 'pluploadL10n', $uploader_l10n );
|
||||||
|
|
||||||
// keep 'swfupload' for back-compat.
|
// keep 'swfupload' for back-compat.
|
||||||
|
|
Loading…
Reference in New Issue