From a4d4576e48b2cc7ba3539be421220b19f79854d2 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Sat, 2 Apr 2022 12:04:39 +0200 Subject: [PATCH] =?UTF-8?q?fix(wp):=20=F0=9F=90=9B=20Auto=20open=20chat=20?= =?UTF-8?q?bubble?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wordpress/package.json | 6 +++--- packages/wordpress/trunk/README.txt | 5 ++++- packages/wordpress/trunk/public/class-typebot-public.php | 4 +++- packages/wordpress/trunk/typebot.php | 4 ++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/wordpress/package.json b/packages/wordpress/package.json index 3bba48761..56add9bdf 100644 --- a/packages/wordpress/package.json +++ b/packages/wordpress/package.json @@ -1,6 +1,6 @@ { "name": "wordpress", - "version": "2.1.4", + "version": "2.1.5", "main": "index.js", "repository": "https://github.com/typebot-io/wordpress.git", "author": "baptisteArno", @@ -10,7 +10,7 @@ }, "scripts": { "deploy": "yarn copy && yarn commit", - "copy": "svn copy ./trunk ./tags/2.1.4", - "commit": "svn ci -m 'Fix empty typebot URL'" + "copy": "svn copy ./trunk ./tags/2.1.5", + "commit": "svn ci -m 'Fix auto open bubble'" } } diff --git a/packages/wordpress/trunk/README.txt b/packages/wordpress/trunk/README.txt index d8dc77ed1..634628e7c 100644 --- a/packages/wordpress/trunk/README.txt +++ b/packages/wordpress/trunk/README.txt @@ -5,7 +5,7 @@ Requires at least: 5.0 Tested up to: 5.9.1 License: GPL 2.0 License URI: http://www.gnu.org/licenses/gpl-2.0.txt -Stable Tag: 2.1.4 +Stable Tag: 2.1.5 Build beautiful conversational forms @@ -26,6 +26,9 @@ This plugin relies on Typebot which is a tool that allows you to create conversa 3. Activate your Typebot with the "Typebot" admin button located in the sidebar == Changelog == += 2.1.5 = +* Fix auto open bubble even if empty param + = 2.1.4 = * Fix bug when Typebot URL is empty diff --git a/packages/wordpress/trunk/public/class-typebot-public.php b/packages/wordpress/trunk/public/class-typebot-public.php index e5fa6351f..21d9366a3 100644 --- a/packages/wordpress/trunk/public/class-typebot-public.php +++ b/packages/wordpress/trunk/public/class-typebot-public.php @@ -128,7 +128,9 @@ class Typebot_Public $url . '", autoOpenDelay: ' . - get_option('chat_delay') * 1000 . + (get_option('chat_delay') === '' || get_option('chat_delay') === null + ? 'undefined' + : get_option('chat_delay') * 1000) . ', button: { color: "' . diff --git a/packages/wordpress/trunk/typebot.php b/packages/wordpress/trunk/typebot.php index ba958adf7..036434801 100644 --- a/packages/wordpress/trunk/typebot.php +++ b/packages/wordpress/trunk/typebot.php @@ -3,7 +3,7 @@ /** * Plugin Name: Typebot * Description: Convert more with conversational forms - * Version: 2.1.4 + * Version: 2.1.5 * Author: Typebot * Author URI: http://typebot.io/ * License: GPL-2.0+ @@ -16,7 +16,7 @@ if (!defined('WPINC')) { die(); } -define('TYPEBOT_VERSION', '2.1.4'); +define('TYPEBOT_VERSION', '2.1.5'); function activate_typebot() {