From e4850ea7a4ace4e92aaa6660c75d83a1e61ed2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnas=20Ge=C4=8Das?= <13507001+arnas@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:02:54 +0300 Subject: [PATCH] Fix styles --- omnisend/includes/Internal/class-connection.php | 8 +------- omnisend/view/landing-page.html | 10 ++++------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/omnisend/includes/Internal/class-connection.php b/omnisend/includes/Internal/class-connection.php index 0f77112..2fc4bde 100644 --- a/omnisend/includes/Internal/class-connection.php +++ b/omnisend/includes/Internal/class-connection.php @@ -45,19 +45,13 @@ public static function resolve_wordpress_settings() { $url = 'https://api.omnisend.com/wordpress/settings'; $response = wp_remote_get( $url ); - if ( is_wp_error( $response ) ) { - // used for debugging. - error_log( $response->get_error_message() ); // phpcs:ignore - - } else { + if ( ! is_wp_error( $response ) ) { $body = wp_remote_retrieve_body( $response ); $data = json_decode( $body ); // ignore phpcs warning as it's response from API. if ( ! empty( $data->exploreOmnisendLink ) ) { // phpcs:ignore - self::$landing_page_url = $data->exploreOmnisendLink; // phpcs:ignore - } } } diff --git a/omnisend/view/landing-page.html b/omnisend/view/landing-page.html index 504dae4..1cc3c39 100644 --- a/omnisend/view/landing-page.html +++ b/omnisend/view/landing-page.html @@ -11,7 +11,7 @@
- Explore Omnisend + Explore Omnisend Connect Omnisend Connect Omnisend @@ -66,15 +66,13 @@
Join 100,000+ brands using Omnisend
-
Quickly connect Omnisend to turn visitors into subscribers and keep them engaged with newsletters and targeted emails.
- +