Remove chosen script from post author
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user