WordPress.org

Make WordPress Core

Changeset 41570


Ignore:
Timestamp:
09/22/2017 08:09:49 PM (4 years ago)
Author:
azaozz
Message:

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

Props gmariani405, azaozz.
Fixes #41755.

Location:
trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r41376 r41570  
    487487                    'wp-admin/js/**/*.js',
    488488                    'wp-includes/js/*.js',
     489                    'wp-includes/js/plupload/*.js',
    489490                    'wp-includes/js/mediaelement/wp-mediaelement.js',
    490491                    'wp-includes/js/mediaelement/wp-playlist.js',
    491                     'wp-includes/js/plupload/handlers.js',
    492                     'wp-includes/js/plupload/wp-plupload.js',
    493492                    'wp-includes/js/tinymce/plugins/wordpress/plugin.js',
    494493                    'wp-includes/js/tinymce/plugins/wp*/plugin.js',
  • trunk/src/wp-includes/js/plupload/moxie.js

    r41328 r41570  
    1 ;var MXI_DEBUG = true;
     1;var MXI_DEBUG = false;
    22/**
    33 * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
  • trunk/src/wp-includes/script-loader.php

    r41558 r41570  
    286286    $scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", array(), '2.2-20120417');
    287287
    288     // error message for both plupload and swfupload
     288    // Error messages for Plupload.
    289289    $uploader_l10n = array(
    290290        'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
     
    313313    );
    314314
    315     $scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.8' );
     315    $scripts->add( 'moxiejs', "/wp-includes/js/plupload/moxie$suffix.js", array(), '1.3.5' );
     316    $scripts->add( 'plupload', "/wp-includes/js/plupload/plupload$suffix.js", array( 'moxiejs' ), '2.1.9' );
    316317    // Back compat handles:
    317318    foreach ( array( 'all', 'html5', 'flash', 'silverlight', 'html4' ) as $handle ) {
Note: See TracChangeset for help on using the changeset viewer.