From 3ab5d9ec494ced0833c8dd3b60dd549c874389f0 Mon Sep 17 00:00:00 2001 From: paul sealock Date: Thu, 15 Aug 2024 14:30:12 +1200 Subject: [PATCH] load settings assests --- plugins/woocommerce/includes/admin/class-wc-admin-assets.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php index 6ceb6c82f77..d0d97db826f 100644 --- a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php +++ b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php @@ -41,6 +41,10 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) : $screen = get_current_screen(); $screen_id = $screen ? $screen->id : ''; + if ( strpos( $_GET['path'], '/settings' ) !== false ) { + $screen_id = 'woocommerce_page_wc-settings'; + } + // Register admin styles. wp_register_style( 'woocommerce_admin_menu_styles', WC()->plugin_url() . '/assets/css/menu.css', array(), $version ); wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), $version );