Skip to content

Commit

Permalink
Make sure wp-block-library is enqueued before adding inline styles to it
Browse files Browse the repository at this point in the history
  • Loading branch information
zaguiini committed Mar 11, 2022
1 parent c71d27e commit 4bdba6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compat/wordpress-6.0/class-wp-webfonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public function generate_and_enqueue_editor_styles() {
return;
}

wp_enqueue_style( 'wp-block-library' );
wp_add_inline_style( 'wp-block-library', $styles );
}

Expand Down

0 comments on commit 4bdba6d

Please sign in to comment.