Plupload: minify and load `plupload.js` and `moxie.js` separately to make them easier to debug.

Props gmariani405, azaozz.
Fixes #41755.
Built from https://develop.svn.wordpress.org/trunk@41570


git-svn-id: http://core.svn.wordpress.org/trunk@41403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2017-09-22 20:10:48 +00:00
parent b07cffe99a
commit 41ad3f294f
5 changed files with 8 additions and 43 deletions

View File

@ -1,4 +1,4 @@
;var MXI_DEBUG = true;
;var MXI_DEBUG = false;
/**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.3.5

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -285,7 +285,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", array(), '2.2-20120417');
// error message for both plupload and swfupload
// Error messages for Plupload.
$uploader_l10n = array(
'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'),
@ -312,7 +312,8 @@ function wp_default_scripts( &$scripts ) {
'error_uploading' => __('“%s” has failed to upload.')
);
$scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.8' );
$scripts->add( 'moxiejs', "/wp-includes/js/plupload/moxie$suffix.js", array(), '1.3.5' );
$scripts->add( 'plupload', "/wp-includes/js/plupload/plupload$suffix.js", array( 'moxiejs' ), '2.1.9' );
// Back compat handles:
foreach ( array( 'all', 'html5', 'flash', 'silverlight', 'html4' ) as $handle ) {
$scripts->add( "plupload-$handle", false, array( 'plupload' ), '2.1.1' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41569';
$wp_version = '4.9-alpha-41570';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.