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:
parent
6bfe8458aa
commit
3baaffc5da
@ -789,7 +789,8 @@ final class _WP_Editors {
|
|||||||
|
|
||||||
if ( self::$has_medialib ) {
|
if ( self::$has_medialib ) {
|
||||||
add_thickbox();
|
add_thickbox();
|
||||||
wp_enqueue_script('media-upload');
|
wp_enqueue_script( 'media-upload' );
|
||||||
|
wp_enqueue_script( 'wp-embed' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user