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:
parent
2189575beb
commit
7baca50473
|
@ -17,6 +17,7 @@ if ( wp_is_mobile() )
|
||||||
|
|
||||||
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
|
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
|
||||||
add_thickbox();
|
add_thickbox();
|
||||||
|
wp_enqueue_media();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue