From d16307c1de99df7858efe344241b06953cf34941 Mon Sep 17 00:00:00 2001 From: paul sealock Date: Thu, 5 Sep 2024 16:20:19 +1200 Subject: [PATCH] save --- plugins/woocommerce/includes/admin/class-wc-admin-assets.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php index c780415ecbf..d9426d1a58a 100644 --- a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php +++ b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php @@ -87,6 +87,8 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) : // Sitewide menu CSS. wp_enqueue_style( 'woocommerce_admin_menu_styles' ); + $is_new_settings = isset( $_GET['path'] ) && strpos( $_GET['path'], '/settings' ) !== false; + // Admin styles for WC pages only. if ( in_array( $screen_id, wc_get_screen_ids() ) || $is_new_settings ) { wp_enqueue_style( 'woocommerce_admin_styles' );