Make WordPress Core

Changeset 35253


Ignore:
Timestamp:
10/17/2015 11:25:56 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Embeds: After [35235], replace some missed oembed references with embed.

Props peterwilsoncc.
Fixes #34272.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r35235 r35253  
    457457add_action( 'embed_head',           'locale_stylesheet'                    );
    458458
    459 add_action( 'oembed_footer',        'wp_print_footer_scripts',       20    );
     459add_action( 'embed_footer',         'wp_print_footer_scripts',       20    );
    460460
    461461add_filter( 'excerpt_more',         'wp_embed_excerpt_more',         20    );
  • trunk/src/wp-includes/embed-functions.php

    r35235 r35253  
    371371 */
    372372function wp_oembed_add_host_js() {
    373     wp_enqueue_script( 'wp-oembed' );
     373    wp_enqueue_script( 'wp-embed' );
    374374}
    375375
  • trunk/src/wp-includes/script-loader.php

    r35230 r35253  
    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().
Note: See TracChangeset for help on using the changeset viewer.