WordPress.org

Make WordPress Core

Ticket #22730: 22730.diff

File 22730.diff, 1.3 KB (added by nacin, 2 years ago)

With this, also move wp-admin/js/utils.js to wp-includes/js/utils.js

  • wp-includes/script-loader.php

     
    5959 
    6060        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; 
    6161 
    62         $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js" ); 
     62        $scripts->add( 'utils', "/wp-includes/js/utils$suffix.js" ); 
    6363 
    6464        $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), false, 1 ); 
    6565        did_action( 'init' ) && $scripts->localize( 'common', 'commonL10n', array( 
     
    329329 
    330330        // To enqueue media-views or media-editor, call wp_enqueue_media(). 
    331331        // Both rely on numerous settings, styles, and templates to operate correctly. 
    332         $scripts->add( 'media-views',  "/wp-includes/js/media-views$suffix.js",  array( 'media-models', 'wp-plupload', 'jquery-ui-sortable' ), false, 1 ); 
     332        $scripts->add( 'media-views',  "/wp-includes/js/media-views$suffix.js",  array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable' ), false, 1 ); 
    333333        $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 ); 
    334334        $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 ); 
    335335