Skip to content

Commit

Permalink
Block Styles: Fix ordering of stylesheets when a style variation is a…
Browse files Browse the repository at this point in the history
…pplied.

Adjusts the dependency order to ensure stylesheets are output in the correct order.

Syncs the PHP changes from WordPress/gutenberg#63918.

Props talldanwp, aaronrobertshaw, andrewserong, aristath, mukesh27, ramonopoly, ytfeldrawkcab.
Fixes #61748.


Built from https://develop.svn.wordpress.org/trunk@58850


git-svn-id: http://core.svn.wordpress.org/trunk@58246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
talldan committed Aug 5, 2024
1 parent 3a703f8 commit 2468ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/block-supports/block-style-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

/*
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-58849';
$wp_version = '6.7-alpha-58850';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 2468ef9

Please sign in to comment.