Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Commit

Permalink
Only enqueue media-widgets style if media widgets not merged into core
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed May 11, 2017
1 parent ea787b6 commit 993d9c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core-media-widgets.php
Expand Up @@ -98,9 +98,7 @@ function wp32417_add_default_filters() {
function wp32417_default_styles( WP_Styles $styles ) {
$handle = 'media-widgets';
$src = plugin_dir_url( __FILE__ ) . 'wp-admin/css/widgets/media-widgets.css';
if ( $styles->query( $handle, 'registered' ) ) {
$styles->registered[ $handle ] = $src;
} else {
if ( ! WP_CORE_MEDIA_WIDGETS_MERGED ) {
$styles->add( $handle, $src, array( 'media-views' ) );
}
}
Expand Down

0 comments on commit 993d9c9

Please sign in to comment.