mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@27733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2574,6 +2574,7 @@ function wp_enqueue_media( $args = array() ) {
|
||||
wp_enqueue_script( 'media-audiovideo' );
|
||||
wp_enqueue_style( 'media-views' );
|
||||
if ( is_admin() ) {
|
||||
wp_enqueue_script( 'mce-view' );
|
||||
wp_enqueue_script( 'image-edit' );
|
||||
}
|
||||
wp_enqueue_style( 'imgareaselect' );
|
||||
|
||||
Reference in New Issue
Block a user