Register woocommerce.css so it can be enqueued in the editor
This commit is contained in:
parent
19bdc1c35b
commit
ee08d2d110
|
@ -54,6 +54,11 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
|
||||||
wp_style_add_data( 'woocommerce_admin_marketplace_styles', 'rtl', 'replace' );
|
wp_style_add_data( 'woocommerce_admin_marketplace_styles', 'rtl', 'replace' );
|
||||||
wp_style_add_data( 'woocommerce_admin_privacy_styles', 'rtl', 'replace' );
|
wp_style_add_data( 'woocommerce_admin_privacy_styles', 'rtl', 'replace' );
|
||||||
|
|
||||||
|
if ( $screen->is_block_editor() ) {
|
||||||
|
wp_register_style( 'woocommerce-general', WC()->plugin_url() . '/assets/css/woocommerce.css', array(), $version );
|
||||||
|
wp_style_add_data( 'woocommerce-general', 'rtl', 'replace' );
|
||||||
|
}
|
||||||
|
|
||||||
// Sitewide menu CSS.
|
// Sitewide menu CSS.
|
||||||
wp_enqueue_style( 'woocommerce_admin_menu_styles' );
|
wp_enqueue_style( 'woocommerce_admin_menu_styles' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue