diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 69905be1c3..449d971cb8 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -213,6 +213,7 @@ add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); add_action( 'wp_head', 'locale_stylesheet' ); add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 ); add_action( 'wp_head', 'noindex', 1 ); +add_action( 'wp_head', 'print_emoji_detection_script', 7 ); add_action( 'wp_head', 'wp_print_styles', 8 ); add_action( 'wp_head', 'wp_print_head_scripts', 9 ); add_action( 'wp_head', 'wp_generator' ); diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index f14ef866db..e6f44c851e 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4082,6 +4082,13 @@ function wp_spaces_regexp() { * @since 4.2.0 */ function print_emoji_styles() { + static $printed = false; + + if ( $printed ) { + return; + } + + $printed = true; ?>