check param isset first

This commit is contained in:
paul sealock 2024-08-27 14:04:04 +12:00
parent e2ec1c46f8
commit 89aed882af
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}