From 4e70d5d43a5edc39ec93a78d16061674faed509a Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 24 Jan 2024 19:26:11 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/branches/6.4@57347 git-svn-id: http://core.svn.wordpress.org/branches/6.4@56853 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 9cb447181a..7ebc3a1d3b 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5e92c4358b..86b91c62d0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4.3-alpha-57346'; +$wp_version = '6.4.3-alpha-57347'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.