Editor: Enqueue the `wp-embed` script to fix embed previews inside the media modal.

Props swissspidy.
Fixes #37334.

git-svn-id: https://develop.svn.wordpress.org/trunk@38062 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2016-07-14 13:28:36 +00:00
parent 6bfe8458aa
commit 3baaffc5da
1 changed files with 2 additions and 1 deletions

View File

@ -789,7 +789,8 @@ final class _WP_Editors {
if ( self::$has_medialib ) {
add_thickbox();
wp_enqueue_script('media-upload');
wp_enqueue_script( 'media-upload' );
wp_enqueue_script( 'wp-embed' );
}
/**