Add QuickPress support for new media workflow.
* Adds the code required to include the new media scripts, styles, and settings to `media_button()`. * Improves script dependencies, namely making `media-upload` require `media-views`. * Some CSS tweaks for the making the new button work well with QuickPress. see #21390, fixes #22021. git-svn-id: http://core.svn.wordpress.org/trunk@22072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -17,13 +17,11 @@ if ( wp_is_mobile() )
|
||||
|
||||
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
|
||||
add_thickbox();
|
||||
wp_enqueue_script('media-upload');
|
||||
wp_enqueue_script( 'media-views' );
|
||||
|
||||
wp_enqueue_script( 'media-upload' );
|
||||
wp_enqueue_style( 'media-views' );
|
||||
wp_plupload_default_settings();
|
||||
add_action( 'admin_footer', 'wp_print_media_templates' );
|
||||
|
||||
wp_enqueue_script( 'mce-view' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user