Make WordPress Core

Changeset 35395


Ignore:
Timestamp:
10/26/2015 05:49:51 AM (8 years ago)
Author:
pento
Message:

Embeds: Move the embed iframe script to the footer, as it isn't being run until DOMContentLoaded is fired.

Props brainstormforce, pratikchaskar.

Fixes #344444.

File:
1 edited

Legend:

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

    r35331 r35395  
    447447add_action( 'embed_head',           'print_emoji_styles'                   );
    448448add_action( 'embed_head',           'print_embed_styles'                   );
    449 add_action( 'embed_head',           'print_embed_scripts'                  );
    450449add_action( 'embed_head',           'wp_print_head_scripts',         20    );
    451450add_action( 'embed_head',           'wp_print_styles',               20    );
     
    454453add_action( 'embed_head',           'locale_stylesheet'                    );
    455454
     455add_action( 'embed_footer',         'print_embed_scripts'                  );
    456456add_action( 'embed_footer',         'wp_print_footer_scripts',       20    );
    457457
Note: See TracChangeset for help on using the changeset viewer.