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

@@ -14,7 +14,7 @@ jQuery(document).ready(function($){
});
// Chosen select
$(".chosen-select, #poststuff #post_author_override").chosen({
$(".chosen-select").chosen({
allow_single_deselect: true,
search_contains: true,
single_backstroke_delete: false,

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' );