Remove chosen script from post author

This commit is contained in:
Brian Miyaji
2018-07-09 16:09:05 +10:00
parent 3e1a85740c
commit c31ccd00aa
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class SP_Admin_Assets {
$screen = get_current_screen();
if ( in_array( $screen->id, sp_get_screen_ids() ) || in_array( $screen->id, array( 'post', 'page', 'attachment' ) ) ) {
if ( in_array( $screen->id, sp_get_screen_ids() ) ) {
// Admin styles for SP pages only
wp_enqueue_style( 'jquery-chosen', SP()->plugin_url() . '/assets/css/chosen.css', array(), '1.1.0' );
wp_enqueue_style( 'wp-color-picker' );