Media: Ensure media and its dependencies are included when a post type supports the editor or featured images. see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-11-09 05:10:07 +00:00
parent 2189575beb
commit 7baca50473
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();
}
/**