Skip to content

Commit b96ed61

Browse files
committed
Add additional FSE theme check
1 parent 9edef79 commit b96ed61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/woocommerce/includes/admin/class-wc-admin-assets.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ public function admin_styles() {
5656

5757
if ( $screen && $screen->is_block_editor() ) {
5858
wp_register_style( 'woocommerce-general', WC()->plugin_url() . '/assets/css/woocommerce.css', array(), $version );
59-
wp_register_style( 'woocommerce-blocktheme', WC()->plugin_url() . '/assets/css/woocommerce-blocktheme.css', array(), $version );
6059
wp_style_add_data( 'woocommerce-general', 'rtl', 'replace' );
61-
wp_style_add_data( 'woocommerce-blocktheme', 'rtl', 'replace' );
62-
wp_enqueue_style( 'woocommerce-blocktheme' );
60+
if ( wc_current_theme_is_fse_theme() ) {
61+
wp_register_style( 'woocommerce-blocktheme', WC()->plugin_url() . '/assets/css/woocommerce-blocktheme.css', array(), $version );
62+
wp_style_add_data( 'woocommerce-blocktheme', 'rtl', 'replace' );
63+
wp_enqueue_style( 'woocommerce-blocktheme' );
64+
}
6365
}
6466

6567
// Sitewide menu CSS.

0 commit comments

Comments
 (0)