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/media.php

    r27620 r27625  
    25372537    wp_enqueue_script( 'media-audiovideo' );
    25382538    wp_enqueue_style( 'media-views' );
     2539    if ( is_admin() ) {
     2540        wp_enqueue_script( 'image-edit' );
     2541    }
    25392542    wp_enqueue_style( 'imgareaselect' );
    25402543    wp_plupload_default_settings();
Note: See TracChangeset for help on using the changeset viewer.