diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php index 2569a7d27a3..92e6ad32bf9 100644 --- a/plugins/woocommerce/includes/admin/class-wc-admin-assets.php +++ b/plugins/woocommerce/includes/admin/class-wc-admin-assets.php @@ -41,7 +41,7 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) : $screen = get_current_screen(); $screen_id = $screen ? $screen->id : ''; - if ( strpos( $_GET['path'], '/settings' ) !== false ) { + if ( isset( $_GET['path'] ) && strpos( $_GET['path'], '/settings' ) !== false ) { $screen_id = 'woocommerce_page_wc-settings'; }