Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasfoo committed Oct 27, 2023
1 parent 8c02b0e commit 0c9dd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-calypso-bridge-customize-store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c9dd7e

Please sign in to comment.