Make WordPress Core

Ticket #34272: 34272.3.diff

File 34272.3.diff, 1.7 KB (added by peterwilsoncc, 10 years ago)
  • src/wp-includes/default-filters.php

    diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php
    index 31284d5..f3f7114 100644
    a b add_action( 'embed_head', 'wp_no_robots' ); 
    456456add_action( 'embed_head',           'rel_canonical'                        );
    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    );
    462462add_filter( 'the_excerpt_embed',    'wptexturize'                          );
  • 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.