Make WordPress Core


Ignore:
Timestamp:
09/22/2017 08:09:49 PM (7 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.