From 9bb65cc1a2f67a5734efdf99a6f219cbfdc7c827 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Wed, 7 Aug 2024 19:38:17 +0000 Subject: [PATCH] Block Styles: Fix ordering of stylesheets when a style variation is applied. Adjusts the dependency order to ensure stylesheets are output in the correct order. Syncs the PHP changes from https://github.com/WordPress/gutenberg/pull/63918. Reviewed by hellofromTonya. Merges [58850] to the 6.6 branch. Props talldanwp, aaronrobertshaw, andrewserong, aristath, mukesh27, ramonopoly, ytfeldrawkcab. Fixes #61748. Built from https://develop.svn.wordpress.org/branches/6.6@58861 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58257 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-supports/block-style-variations.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/block-supports/block-style-variations.php b/wp-includes/block-supports/block-style-variations.php index 77659bf86f..2e86cb71af 100644 --- a/wp-includes/block-supports/block-style-variations.php +++ b/wp-includes/block-supports/block-style-variations.php @@ -196,7 +196,7 @@ function wp_render_block_style_variation_support_styles( $parsed_block ) { return $parsed_block; } - wp_register_style( 'block-style-variation-styles', false, array( 'global-styles', 'wp-block-library' ) ); + wp_register_style( 'block-style-variation-styles', false, array( 'wp-block-library', 'global-styles' ) ); wp_add_inline_style( 'block-style-variation-styles', $variation_styles ); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 7f8d406390..037a593df5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6.2-alpha-58805'; +$wp_version = '6.6.2-alpha-58861'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.