From be585db5421e76d562013a40a11e6aed352bff3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rokas=20Paic=CC=8Cius?= Date: Mon, 12 Feb 2024 14:52:44 +0200 Subject: [PATCH] Update connection check --- omnisend/includes/Internal/class-connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnisend/includes/Internal/class-connection.php b/omnisend/includes/Internal/class-connection.php index ce5960b..967a2f3 100644 --- a/omnisend/includes/Internal/class-connection.php +++ b/omnisend/includes/Internal/class-connection.php @@ -28,7 +28,7 @@ public static function display(): void { return; } - if ( $response['platform'] !== '' && $response['platform'] !== 'WordPress' ) { + if ( $response['verified'] === true && $response['platform'] !== 'wordpress' ) { echo '

This Omnisend account is already connected to non-WordPress site. Log in to access it. Contact our support if you have other issues.

'; require_once __DIR__ . '/../../view/connection-form.html';