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

Props peterwilsoncc.
Fixes #34272.

git-svn-id: https://develop.svn.wordpress.org/trunk@35253 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-10-17 23:25:56 +00:00
parent d5b31e6ba2
commit 8c19030438
3 changed files with 3 additions and 3 deletions

View File

@ -456,7 +456,7 @@ add_action( 'embed_head', 'wp_no_robots' );
add_action( 'embed_head', 'rel_canonical' );
add_action( 'embed_head', 'locale_stylesheet' );
add_action( 'oembed_footer', 'wp_print_footer_scripts', 20 );
add_action( 'embed_footer', 'wp_print_footer_scripts', 20 );
add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 );
add_filter( 'the_excerpt_embed', 'wptexturize' );

View File

@ -370,7 +370,7 @@ function wp_oembed_add_discovery_links() {
* @since 4.4.0
*/
function wp_oembed_add_host_js() {
wp_enqueue_script( 'wp-oembed' );
wp_enqueue_script( 'wp-embed' );
}

View File

@ -466,7 +466,7 @@ function wp_default_scripts( &$scripts ) {
),
) );
$scripts->add( 'wp-oembed', "/wp-includes/js/wp-oembed$suffix.js" );
$scripts->add( 'wp-embed', "/wp-includes/js/wp-embed$suffix.js" );
// To enqueue media-views or media-editor, call wp_enqueue_media().
// Both rely on numerous settings, styles, and templates to operate correctly.