WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/26/2014 12:10:21 PM (6 years ago)
Author:
wonderboymusic
Message:

Don't make mce-view a dependency for media-audiovideo. Make media-audiovideo and wp-playlist dependencies for mce-view and only enqueue mce-view in the admin in wp_enqueue_media(). MCE views don't need to be included when media is loaded on the front end.

Fixes #27509.

File:
1 edited

Legend:

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

    r27726 r27733  
    25752575    wp_enqueue_style( 'media-views' );
    25762576    if ( is_admin() ) {
     2577        wp_enqueue_script( 'mce-view' );
    25772578        wp_enqueue_script( 'image-edit' );
    25782579    }
Note: See TracChangeset for help on using the changeset viewer.