diff --git a/includes/class-wc-calypso-bridge-customize-store.php b/includes/class-wc-calypso-bridge-customize-store.php index 20085752..efdee453 100644 --- a/includes/class-wc-calypso-bridge-customize-store.php +++ b/includes/class-wc-calypso-bridge-customize-store.php @@ -44,7 +44,7 @@ private function __construct() { // wpcom.editor.js conflicts with CYS scripts due to double registration of the private-apis // dequeue it on CYS pages. add_action( 'admin_print_scripts', function() { - if ( str_contains( wp_unslash( $_GET['path'] ), '/customize-store/' ) ) { + if ( isset( $_GET['path'] ) && str_contains( wp_unslash( $_GET['path'] ), '/customize-store/' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized wp_dequeue_script( 'wpcom-block-editor-wpcom-editor-script' ); } }, 9999);