diff --git a/inc/manager.php b/inc/manager.php index 85a5070f..ad92c716 100644 --- a/inc/manager.php +++ b/inc/manager.php @@ -128,7 +128,7 @@ public function should_replace() { if ( ( is_admin() && ! self::is_ajax_request() ) || ! $this->settings->is_connected() || ! $this->settings->is_enabled() || is_customize_preview() ) { return false; // @codeCoverageIgnore } - if ( array_key_exists( 'preview', $_GET ) && 'true' == $_GET['preview'] ) { + if ( array_key_exists( 'preview', $_GET ) && ! empty( $_GET['preview'] ) ) { return false; // @codeCoverageIgnore } @@ -138,10 +138,10 @@ public function should_replace() { if ( array_key_exists( 'elementor-preview', $_GET ) && ! empty( $_GET['elementor-preview'] ) ) { return false; // @codeCoverageIgnore } - if ( array_key_exists( 'ct_builder', $_GET ) && $_GET['ct_builder'] == 'true' ) { + if ( array_key_exists( 'ct_builder', $_GET ) && ! empty( $_GET['ct_builder'] ) ) { return false; // @codeCoverageIgnore } - if ( array_key_exists( 'et_fb', $_GET ) && ( $_GET['et_fb'] == 'true' || $_GET['et_fb'] == '1' ) ) { + if ( array_key_exists( 'et_fb', $_GET ) && ! empty( $_GET['et_fb'] ) ) { return false; // @codeCoverageIgnore } if ( array_key_exists( 'context', $_GET ) && $_GET['context'] == 'edit' ) {