Skip to content

Commit e707e37

Browse files
committed
Embeds: Ensure the deprecated function print_emoji_styles isn't used
Ensure that the proper new function wp_enqueue_emoji_styles is used in embeds. Follow-up to: [56194]. Props peterwilsoncc, bobbingwide, hellofromTonya. Fixes #59892. See: #58775. git-svn-id: https://develop.svn.wordpress.org/trunk@57306 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0b7165e commit e707e37

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-includes/default-filters.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@
687687
add_action( 'embed_head', 'wp_robots' );
688688
add_action( 'embed_head', 'rel_canonical' );
689689
add_action( 'embed_head', 'locale_stylesheet', 30 );
690+
add_action( 'enqueue_embed_scripts', 'wp_enqueue_emoji_styles' );
690691

691692
add_action( 'embed_content_meta', 'print_embed_comments_button' );
692693
add_action( 'embed_content_meta', 'print_embed_sharing_button' );

tests/phpunit/tests/oembed/template.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ public function set_up() {
1010

1111
global $wp_scripts;
1212
$wp_scripts = null;
13-
14-
remove_action( 'wp_print_styles', 'print_emoji_styles' );
1513
}
1614

1715
public function tear_down() {

0 commit comments

Comments
 (0)