Skip to content

Commit ed59e80

Browse files
authored
👌 IMPROVE: Styles from wp-editor with context (#267)
1 parent 68c120b commit ed59e80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/cgb-scripts/template/src

packages/cgb-scripts/template/src/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function <% blockNamePHPLower %>_cgb_block_assets() { // phpcs:ignore
3232
wp_register_style(
3333
'<% blockNamePHPLower %>-cgb-style-css', // Handle.
3434
plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ), // Block style CSS.
35-
array( 'wp-editor' ), // Dependency to include the CSS after it.
35+
is_admin() ? array( 'wp-editor' ) : null, // Dependency to include the CSS after it.
3636
null // filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.style.build.css' ) // Version: File modification time.
3737
);
3838

0 commit comments

Comments
 (0)