Permanent fix for Post Author select is broken #273 issue

This commit is contained in:
savvasha
2018-06-02 11:57:26 +03:00
parent b27e9260d2
commit 51e5ba02b2
2 changed files with 3 additions and 3 deletions

View File

@@ -33,8 +33,8 @@ class SP_Admin_Assets {
wp_enqueue_style( 'sportspress-admin-menu-styles', SP()->plugin_url() . '/assets/css/menu.css', array(), SP_VERSION );
$screen = get_current_screen();
if ( in_array( $screen->id, sp_get_screen_ids() ) ) {
if ( in_array( $screen->id, sp_get_screen_ids() ) || in_array( $screen->id, array( 'post', 'page', 'attachment' ) ) ) {
// 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' );