Make WordPress Core

Changeset 38062


Ignore:
Timestamp:
07/14/2016 01:28:36 PM (8 years ago)
Author:
ocean90
Message:

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

Props swissspidy.
Fixes #37334.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r37985 r38062  
    790790        if ( self::$has_medialib ) {
    791791            add_thickbox();
    792             wp_enqueue_script('media-upload');
     792            wp_enqueue_script( 'media-upload' );
     793            wp_enqueue_script( 'wp-embed' );
    793794        }
    794795
Note: See TracChangeset for help on using the changeset viewer.