Skip to content

Commit

Permalink
fix: remove invalid param from wp_register_style() in gutenberg_enque…
Browse files Browse the repository at this point in the history
…ue_stored_styles()
  • Loading branch information
justlevine committed Dec 30, 2024
1 parent a28455c commit 3989cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) {

// Combines Core styles.
if ( ! empty( $compiled_core_stylesheet ) ) {
wp_register_style( $style_tag_id, false, array(), true, true );
wp_register_style( $style_tag_id, false, array(), true );
wp_add_inline_style( $style_tag_id, $compiled_core_stylesheet );
wp_enqueue_style( $style_tag_id );
}
Expand All @@ -562,7 +562,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) {
$styles = gutenberg_style_engine_get_stylesheet_from_context( $store_name, $options );
if ( ! empty( $styles ) ) {
$key = "wp-style-engine-$store_name";
wp_register_style( $key, false, array(), true, true );
wp_register_style( $key, false, array(), true );
wp_add_inline_style( $key, $styles );
wp_enqueue_style( $key );
}
Expand Down

0 comments on commit 3989cbd

Please sign in to comment.