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].

Reviewed by davidbaumwald.
Merges [57306] to the 6.4 branch.

Props peterwilsoncc, bobbingwide, hellofromTonya.
Fixes #59892. See: #58775.


git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2024-01-24 19:25:00 +00:00
parent 4368dbadf6
commit 6338d63ec7
2 changed files with 1 additions and 2 deletions

View File

@ -687,6 +687,7 @@ add_action( 'embed_head', 'wp_print_styles', 20 );
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' );

View File

@ -10,8 +10,6 @@ class Tests_Embed_Template extends WP_UnitTestCase {
global $wp_scripts;
$wp_scripts = null;
remove_action( 'wp_print_styles', 'print_emoji_styles' );
}
public function tear_down() {