WordPress.org

Make WordPress Core

Changeset 38062


Ignore:
Timestamp:
07/14/16 13:28:36 (16 months 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.