Media: Ensure media and its dependencies are included when a post type supports the editor or featured images. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@22490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0a67c025e5
commit
ce619e07f0
|
@ -17,6 +17,7 @@ if ( wp_is_mobile() )
|
|||
|
||||
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
|
||||
add_thickbox();
|
||||
wp_enqueue_media();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue