Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 3.0.5

Version Description

Release date: July 22, 2022

Changelog: - Fixed a reported few bugs

If you experience bugs, problems or you just have some feedback, let us know on our Buttonizer community!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 3.0.5
Comparing to
See all releases

Code changes from version 3.0.4 to 3.0.5

Files changed (4) hide show
  1. app/Api/Connection/Disconnect.php +1 -1
  2. buttonizer.php +2 -2
  3. init.php +4 -22
  4. readme.txt +9 -1
app/Api/Connection/Disconnect.php CHANGED
@@ -27,7 +27,7 @@ use Buttonizer\Utils\Settings;
27
  */
28
  class Disconnect
29
  {
30
- private static $continueIfStatus = ["buttonizer_token_expired", "buttonizer_request_failed"];
31
 
32
  /**
33
  * Register route
27
  */
28
  class Disconnect
29
  {
30
+ private static $continueIfStatus = ["buttonizer_token_expired", "buttonizer_api_request_failed", "buttonizer_api_server_error", "buttonizer_api_not_reachable"];
31
 
32
  /**
33
  * Register route
buttonizer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Buttonizer - Smart Floating Action Button
4
  * Plugin URI: https://buttonizer.io
5
  * Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
- * Version: 3.0.4
7
  * Author: Buttonizer
8
  * Author URI: https://buttonizer.pro
9
  * License: GPLv3
@@ -24,7 +24,7 @@
24
  */
25
 
26
  // Define current Buttonizer version
27
- define('BUTTONIZER_VERSION', '3.0.4');
28
  define('BUTTONIZER_PLUGIN_FILE', __FILE__);
29
 
30
  // Get environment vars
3
  * Plugin Name: Buttonizer - Smart Floating Action Button
4
  * Plugin URI: https://buttonizer.io
5
  * Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
+ * Version: 3.0.5
7
  * Author: Buttonizer
8
  * Author URI: https://buttonizer.pro
9
  * License: GPLv3
24
  */
25
 
26
  // Define current Buttonizer version
27
+ define('BUTTONIZER_VERSION', '3.0.5');
28
  define('BUTTONIZER_PLUGIN_FILE', __FILE__);
29
 
30
  // Get environment vars
init.php CHANGED
@@ -39,24 +39,6 @@ if (
39
  * Add Buttonizer scripts
40
  */
41
 
42
- add_filter('wp_resource_hints', function ($urls, $relation_type) {
43
- // Add prefetch
44
- if ($relation_type === 'dns-prefetch') {
45
- $urls[] = '//api.buttonizer.io';
46
- }
47
-
48
- // Add preconnect
49
- if ('preconnect' === $relation_type) {
50
- // Add Buttonizer API
51
- $urls[] = '//api.buttonizer.io';
52
-
53
- // Add Buttonizer CDN
54
- $urls[] = '//cdn.buttonizer.io';
55
- }
56
-
57
- return $urls;
58
- }, 10, 2);
59
-
60
  add_action('wp_enqueue_scripts', function () {
61
  // Add Google Analytics (old setting from Buttonizer 2.x)
62
  if (Settings::isset("google_analytics")) {
@@ -74,7 +56,7 @@ if (
74
 
75
  // Add integration script
76
  if (Settings::getSetting("site_id")) {
77
- wp_register_script('buttonizer_integration_script', 'https://cdn.buttonizer.io/embed.js', [], false, true);
78
 
79
  // Add Buttonize page data
80
  if (Settings::getSetting("include_page_data", false)) {
@@ -103,10 +85,10 @@ if (
103
  // Add Buttonizer integration script
104
  wp_add_inline_script('buttonizer_integration_script', "
105
  // Script is not yet finished loading in
106
- if(!window.Buttonizer) {
107
  window.addEventListener('buttonizer_script_loaded', () => window.Buttonizer.init('" . Settings::getSetting("site_id") . "'));
108
- } else {
109
- window.Buttonizer.init('" . Settings::getSetting("site_id") . "')
110
  }");
111
  wp_enqueue_script('buttonizer_integration_script');
112
  }
39
  * Add Buttonizer scripts
40
  */
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  add_action('wp_enqueue_scripts', function () {
43
  // Add Google Analytics (old setting from Buttonizer 2.x)
44
  if (Settings::isset("google_analytics")) {
56
 
57
  // Add integration script
58
  if (Settings::getSetting("site_id")) {
59
+ wp_register_script('buttonizer_integration_script', 'https://cdn.buttonizer.io/embed.js', [], BUTTONIZER_VERSION, true);
60
 
61
  // Add Buttonize page data
62
  if (Settings::getSetting("include_page_data", false)) {
85
  // Add Buttonizer integration script
86
  wp_add_inline_script('buttonizer_integration_script', "
87
  // Script is not yet finished loading in
88
+ if(!window.Buttonizer) {
89
  window.addEventListener('buttonizer_script_loaded', () => window.Buttonizer.init('" . Settings::getSetting("site_id") . "'));
90
+ } else {
91
+ window.Buttonizer.init('" . Settings::getSetting("site_id") . "')
92
  }");
93
  wp_enqueue_script('buttonizer_integration_script');
94
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Buy plugin: https://buttonizer.io
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.7
6
  Tested up to: 6.0
7
- Stable tag: 3.0.4
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -193,6 +193,14 @@ Languages can have a different direction of writing and reading? While languages
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
196
  = 3.0.4 =
197
  Release date: July 19, 2022
198
 
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.7
6
  Tested up to: 6.0
7
+ Stable tag: 3.0.5
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
193
 
194
  == Changelog ==
195
 
196
+ = 3.0.5 =
197
+ Release date: July 22, 2022
198
+
199
+ **Changelog:**
200
+ - Fixed a reported few bugs
201
+
202
+ If you experience bugs, problems or you just have some feedback, let us know on our [Buttonizer community](https://community.buttonizer.pro/)!
203
+
204
  = 3.0.4 =
205
  Release date: July 19, 2022
206