fix(wp): 🚨 Not a number warning
This commit is contained in:
@@ -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.5
|
||||
Stable Tag: 2.1.6
|
||||
|
||||
Build beautiful conversational forms
|
||||
|
||||
@@ -26,7 +26,7 @@ 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 =
|
||||
= 2.1.6 =
|
||||
* Fix auto open bubble even if empty param
|
||||
|
||||
= 2.1.4 =
|
||||
|
||||
@@ -154,30 +154,32 @@ class Typebot_Public
|
||||
$url .
|
||||
'",
|
||||
autoOpenDelay: ' .
|
||||
get_option('chat_delay') * 1000 .
|
||||
',
|
||||
empty(get_option('chat_delay'))
|
||||
? 'undefined'
|
||||
: get_option('chat_delay') * 1000 .
|
||||
',
|
||||
proactiveMessage: {
|
||||
avatarUrl: "' .
|
||||
get_option('avatar') .
|
||||
'",
|
||||
get_option('avatar') .
|
||||
'",
|
||||
textContent: "' .
|
||||
get_option('text_content') .
|
||||
'",
|
||||
get_option('text_content') .
|
||||
'",
|
||||
delay: ' .
|
||||
get_option('bubble_delay') * 1000 .
|
||||
',
|
||||
get_option('bubble_delay') * 1000 .
|
||||
',
|
||||
rememberClose: ' .
|
||||
$remember .
|
||||
'
|
||||
$remember .
|
||||
'
|
||||
},
|
||||
hiddenVariables: typebotWpUser,
|
||||
button: {
|
||||
color: "' .
|
||||
$button_color .
|
||||
'",
|
||||
$button_color .
|
||||
'",
|
||||
iconUrl: "' .
|
||||
$chat_icon .
|
||||
'",
|
||||
$chat_icon .
|
||||
'",
|
||||
},
|
||||
}';
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* Plugin Name: Typebot
|
||||
* Description: Convert more with conversational forms
|
||||
* Version: 2.1.5
|
||||
* Version: 2.1.6
|
||||
* Author: Typebot
|
||||
* Author URI: http://typebot.io/
|
||||
* License: GPL-2.0+
|
||||
@@ -16,7 +16,7 @@ if (!defined('WPINC')) {
|
||||
die();
|
||||
}
|
||||
|
||||
define('TYPEBOT_VERSION', '2.1.5');
|
||||
define('TYPEBOT_VERSION', '2.1.6');
|
||||
|
||||
function activate_typebot()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user