Skip to content

Commit

Permalink
Embeds: Ensure the deprecated function print_emoji_styles isn't used
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aaronjorbin committed Jan 17, 2024
1 parent 0b7165e commit e707e37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/wp-includes/default-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@
add_action( 'embed_head', 'wp_robots' );
add_action( 'embed_head', 'rel_canonical' );
add_action( 'embed_head', 'locale_stylesheet', 30 );
add_action( 'enqueue_embed_scripts', 'wp_enqueue_emoji_styles' );

add_action( 'embed_content_meta', 'print_embed_comments_button' );
add_action( 'embed_content_meta', 'print_embed_sharing_button' );
Expand Down
2 changes: 0 additions & 2 deletions tests/phpunit/tests/oembed/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public function set_up() {

global $wp_scripts;
$wp_scripts = null;

remove_action( 'wp_print_styles', 'print_emoji_styles' );
}

public function tear_down() {
Expand Down

0 comments on commit e707e37

Please sign in to comment.