Skip to content

Commit

Permalink
Fix block library and global styles stylesheet ordering when a block …
Browse files Browse the repository at this point in the history
…style variation is active (#63918)

* Fix block library and global styles stylesheet ordering when a block style variation is active

* Add backport changeglog

* Update core backport

----

Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: eric-michel <ytfeldrawkcab@git.wordpress.org>
  • Loading branch information
6 people committed Aug 8, 2024
1 parent ba1fe71 commit ae218b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backport-changelog/6.6/7088.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/7088

* https://github.com/WordPress/gutenberg/pull/63918

2 changes: 1 addition & 1 deletion lib/block-supports/block-style-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function gutenberg_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

0 comments on commit ae218b7

Please sign in to comment.