Make WordPress Core

Ticket #34444: 34444.1.diff

File 34444.1.diff, 923 bytes (added by brainstormforce, 9 years ago)

Moved print_embed_scripts to run on the embed_footer action.

  • src/wp-includes/default-filters.php

    diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
    index bbe9f24..944306d 100644
    add_action( 'wp_head', 'wp_oembed_add_host_js' ); 
    446446add_action( 'embed_head',           'print_emoji_detection_script'         );
    447447add_action( 'embed_head',           'print_emoji_styles'                   );
    448448add_action( 'embed_head',           'print_embed_styles'                   );
    449 add_action( 'embed_head',           'print_embed_scripts'                  );
     449add_action( 'embed_footer',         'print_embed_scripts'                  );
    450450add_action( 'embed_head',           'wp_print_head_scripts',         20    );
    451451add_action( 'embed_head',           'wp_print_styles',               20    );
    452452add_action( 'embed_head',           'wp_no_robots'                         );