From c611f9a514801982be69e4ab118abfc1f7fa4722 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 8 Jul 2016 06:06:36 +0000 Subject: [PATCH] Embeds: Include locale stylesheets after default styles. Fire `locale_stylesheet` action after the `wp_print_styles` action in the embeds header to match the order in `wp_head`. Props swissspidy. Fixes #36839. git-svn-id: https://develop.svn.wordpress.org/trunk@38010 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 28d41c7e2f..b60bee8f44 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -468,7 +468,7 @@ add_action( 'embed_head', 'wp_print_head_scripts', 20 ); add_action( 'embed_head', 'wp_print_styles', 20 ); add_action( 'embed_head', 'wp_no_robots' ); add_action( 'embed_head', 'rel_canonical' ); -add_action( 'embed_head', 'locale_stylesheet' ); +add_action( 'embed_head', 'locale_stylesheet', 30 ); add_action( 'embed_content_meta', 'print_embed_comments_button' ); add_action( 'embed_content_meta', 'print_embed_sharing_button' );