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 @@