Skip to content

Commit 4a334e8

Browse files
committed
Print emoji loader at wp_print_footer_scripts instead of wp_head
1 parent b7b1441 commit 4a334e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/wp-includes/formatting.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5912,7 +5912,11 @@ function print_emoji_detection_script() {
59125912

59135913
$printed = true;
59145914

5915-
_print_emoji_detection_script();
5915+
if ( did_action( 'wp_print_footer_scripts' ) ) {
5916+
_print_emoji_detection_script();
5917+
} else {
5918+
add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' );
5919+
}
59165920
}
59175921

59185922
/**

0 commit comments

Comments
 (0)