WordPress.org

Make WordPress Core

Ticket #41755: 41755.3.patch

File 41755.3.patch, 916 bytes (added by gmariani405, 4 years ago)

Enabled debugging of plupload and moxie

  • wp-includes/script-loader.php

     
    310310                'error_uploading' => __('“%s” has failed to upload.')
    311311        );
    312312
    313         $scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.8' );
     313        if ( SCRIPT_DEBUG ) {
     314                $scripts->add( 'moxie', '/wp-includes/js/plupload/moxie.js', array(), '1.3.5' );
     315                $scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.js', array( 'moxie' ), '2.1.9' );
     316        } else {
     317                $scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.8' );
     318        }
     319       
    314320        // Back compat handles:
    315321        foreach ( array( 'all', 'html5', 'flash', 'silverlight', 'html4' ) as $handle ) {
    316322                $scripts->add( "plupload-$handle", false, array( 'plupload' ), '2.1.1' );