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:
Daryl Koopersmith 2012-11-09 05:10:07 +00:00
parent 0a67c025e5
commit ce619e07f0
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
/**