Skip to content

Commit

Permalink
fix(wp): 🚨 Not a number warning
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 28, 2022
1 parent 4d98de2 commit 1d82940
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
6 changes: 3 additions & 3 deletions packages/wordpress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpress",
"version": "2.1.5",
"version": "2.1.6",
"main": "index.js",
"repository": "https://github.com/typebot-io/wordpress.git",
"author": "baptisteArno",
Expand All @@ -10,7 +10,7 @@
},
"scripts": {
"deploy": "yarn copy && yarn commit",
"copy": "svn copy ./trunk ./tags/2.1.5",
"commit": "svn ci -m 'Fix auto open bubble'"
"copy": "svn copy ./trunk ./tags/2.1.6",
"commit": "svn ci -m 'Fix auto open'"
}
}
4 changes: 2 additions & 2 deletions packages/wordpress/trunk/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 =
Expand Down
30 changes: 16 additions & 14 deletions packages/wordpress/trunk/public/class-typebot-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,30 +154,32 @@ private function parse_bubble_head_code()
$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 .
'",
},
}';
}
Expand Down
4 changes: 2 additions & 2 deletions packages/wordpress/trunk/typebot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -16,7 +16,7 @@
die();
}

define('TYPEBOT_VERSION', '2.1.5');
define('TYPEBOT_VERSION', '2.1.6');

function activate_typebot()
{
Expand Down

0 comments on commit 1d82940

Please sign in to comment.