From 673943cf0a2436aa9ab09b0f2731c6a5c4021bd0 Mon Sep 17 00:00:00 2001 From: chin-sail Date: Fri, 7 Jul 2023 13:17:04 +1200 Subject: [PATCH 1/2] Exit early if Sailthru was blocked by an ad-blocker --- js/tag.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/tag.js b/js/tag.js index b7739c6..2cf1e8d 100644 --- a/js/tag.js +++ b/js/tag.js @@ -1,4 +1,7 @@ window.addEventListener("load", function() { + // Exit early if Sailthru was blocked by an ad-blocker + if(!window.Sailthru) return console.warn("Sailthru onsite JS failed to load."); + console.info("Sailthru onsite JS is loaded. Initializing Sailthru..."); if (tag.isCustom) { jQuery(function($) { From 4868c518af239cbc3bbcbf64c919bf87bd70bcdf Mon Sep 17 00:00:00 2001 From: chin-sail Date: Fri, 7 Jul 2023 22:40:02 +1200 Subject: [PATCH 2/2] Bump version number --- README.txt | 2 +- changelog.md | 3 +++ plugin.php | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index 93cda19..6af6e65 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: sailthru-wp Tags: personalization, email, Requires at least: 5.5 Tested up to: 5.7 -Stable tag: 4.3.0 +Stable tag: 4.3.1 Provides an integration with Sailthru diff --git a/changelog.md b/changelog.md index ceeb00d..bce557c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## v4.3.1 (2023-07-07) +Added fix for ad-blocker + ## v4.3.0 (2021-09-01) Added filter for content vars diff --git a/plugin.php b/plugin.php index 919cd1c..d6a9d56 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Sailthru for WordPress Plugin URI: http://sailthru.com/ Description: Add the power of Sailthru to your WordPress set up. -Version: 4.3.0 +Version: 4.3.1 Requires at least: 5.5 Author: Sailthru Author URI: http://sailthru.com @@ -36,7 +36,7 @@ * @var const $version The current version of the plugin. */ if ( ! defined( 'SAILTHRU_PLUGIN_VERSION' ) ) { - define( 'SAILTHRU_PLUGIN_VERSION', '4.3.0' ); + define( 'SAILTHRU_PLUGIN_VERSION', '4.3.1' ); } if ( ! defined( 'SAILTHRU_PLUGIN_PATH' ) ) {