Skip to content

Commit

Permalink
Update connection check
Browse files Browse the repository at this point in the history
  • Loading branch information
rokeras committed Feb 12, 2024
1 parent 0d56bbc commit be585db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnisend/includes/Internal/class-connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function display(): void {
return;
}

if ( $response['platform'] !== '' && $response['platform'] !== 'WordPress' ) {
if ( $response['verified'] === true && $response['platform'] !== 'wordpress' ) {
echo '<div class="notice notice-error"><p>This Omnisend account is already connected to non-WordPress site. Log in to access it.
<a target="_blank" href="https://www.omnisend.com/customer-support/">Contact our support</a> if you have other issues.</p></div>';
require_once __DIR__ . '/../../view/connection-form.html';
Expand Down

0 comments on commit be585db

Please sign in to comment.