From 6d8ecd2fd6fe1d765b5a6cd0773b6adae3262bf5 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 26 Oct 2015 05:49:51 +0000 Subject: [PATCH] Embeds: Move the embed iframe script to the footer, as it isn't being run until `DOMContentLoaded` is fired. Props brainstormforce, pratikchaskar. Fixes #344444. git-svn-id: https://develop.svn.wordpress.org/trunk@35395 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index bbe9f24a23..f6999cbb4b 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -446,13 +446,13 @@ add_action( 'wp_head', 'wp_oembed_add_host_js' ); add_action( 'embed_head', 'print_emoji_detection_script' ); add_action( 'embed_head', 'print_emoji_styles' ); add_action( 'embed_head', 'print_embed_styles' ); -add_action( 'embed_head', 'print_embed_scripts' ); add_action( 'embed_head', 'wp_print_head_scripts', 20 ); add_action( 'embed_head', 'wp_print_styles', 20 ); add_action( 'embed_head', 'wp_no_robots' ); add_action( 'embed_head', 'rel_canonical' ); add_action( 'embed_head', 'locale_stylesheet' ); +add_action( 'embed_footer', 'print_embed_scripts' ); add_action( 'embed_footer', 'wp_print_footer_scripts', 20 ); add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 );