WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/19/2014 09:15:50 PM (6 years ago)
Author:
nacin
Message:

Only enqueue the image editor in the media modal in the admin.

props gcorne.
see #21811.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r27620 r27625  
    395395    // To enqueue media-views or media-editor, call wp_enqueue_media().
    396396    // Both rely on numerous settings, styles, and templates to operate correctly.
    397     $scripts->add( 'media-views',  "/wp-includes/js/media-views$suffix.js",  array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement', 'image-edit' ), false, 1 );
     397    $scripts->add( 'media-views',  "/wp-includes/js/media-views$suffix.js",  array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement' ), false, 1 );
    398398    $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 );
    399399    $scripts->add( 'media-audiovideo', "/wp-includes/js/media-audiovideo$suffix.js", array( 'media-editor', 'mce-view' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.