Make WordPress Core

Ticket #34272: 34272.2.diff

File 34272.2.diff, 964 bytes (added by peterwilsoncc, 9 years ago)
  • src/wp-includes/embed-functions.php

    diff --git a/src/wp-includes/embed-functions.php b/src/wp-includes/embed-functions.php
    index eff7ae4..b9eeee0 100644
    a b function wp_oembed_add_discovery_links() { 
    370370 * @since 4.4.0
    371371 */
    372372function wp_oembed_add_host_js() {
    373         wp_enqueue_script( 'wp-oembed' );
     373        wp_enqueue_script( 'wp-embed' );
    374374}
    375375
    376376
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index d0fd4a3..09a9fac 100644
    a b function wp_default_scripts( &$scripts ) { 
    466466                ),
    467467        ) );
    468468
    469         $scripts->add( 'wp-oembed', "/wp-includes/js/wp-oembed$suffix.js" );
     469        $scripts->add( 'wp-embed', "/wp-includes/js/wp-embed$suffix.js" );
    470470
    471471        // To enqueue media-views or media-editor, call wp_enqueue_media().
    472472        // Both rely on numerous settings, styles, and templates to operate correctly.