Plupload: minify and load plupload.js
and moxie.js
separately to make them easier to debug.
Props gmariani405, azaozz. Fixes #41755. git-svn-id: https://develop.svn.wordpress.org/trunk@41570 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4e9d5a125
commit
6971f7565e
@ -486,10 +486,9 @@ module.exports = function(grunt) {
|
||||
src: [
|
||||
'wp-admin/js/**/*.js',
|
||||
'wp-includes/js/*.js',
|
||||
'wp-includes/js/plupload/*.js',
|
||||
'wp-includes/js/mediaelement/wp-mediaelement.js',
|
||||
'wp-includes/js/mediaelement/wp-playlist.js',
|
||||
'wp-includes/js/plupload/handlers.js',
|
||||
'wp-includes/js/plupload/wp-plupload.js',
|
||||
'wp-includes/js/tinymce/plugins/wordpress/plugin.js',
|
||||
'wp-includes/js/tinymce/plugins/wp*/plugin.js',
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
;var MXI_DEBUG = true;
|
||||
;var MXI_DEBUG = false;
|
||||
/**
|
||||
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
|
||||
* v1.3.5
|
||||
|
40
src/wp-includes/js/plupload/plupload.full.min.js
vendored
40
src/wp-includes/js/plupload/plupload.full.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user