WP Live Chat Support - Version 9.0.13

Version Description

  • 2020-08-03 =
  • Fix bug on visitors' chat initialization.
Download this release

Release Info

Developer wpdev3cx
Plugin Icon 128x128 WP Live Chat Support
Version 9.0.13
Comparing to
See all releases

Code changes from version 9.0.12 to 9.0.13

changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 9.0.12 - 2020-07-31 =
2
  * Fix utf8 encoding on settings json.
3
 
1
+ = 9.0.13 - 2020-08-03 =
2
+ * Fix bug on visitors' chat initialization.
3
+
4
  = 9.0.12 - 2020-07-31 =
5
  * Fix utf8 encoding on settings json.
6
 
config.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
 
10
  define('WPLC_MIN_WP_VERSION', "5.3");
11
  define('WPLC_MIN_PHP_VERSION', "5.4");
12
- define('WPLC_PLUGIN_VERSION', "9.0.12");
13
  define('WPLC_PLUGIN_DIR', dirname(__FILE__));
14
  define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
15
  define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
9
 
10
  define('WPLC_MIN_WP_VERSION', "5.3");
11
  define('WPLC_MIN_PHP_VERSION', "5.4");
12
+ define('WPLC_PLUGIN_VERSION', "9.0.13");
13
  define('WPLC_PLUGIN_DIR', dirname(__FILE__));
14
  define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
15
  define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
css/vendor/bootstrap/{wplc_bootstrap_9_0_12.css → wplc_bootstrap_9_0_13.css} RENAMED
File without changes
includes/models/ajax_response.php CHANGED
@@ -15,7 +15,20 @@ class TCXChatAjaxResponse extends TCXAjaxResponse
15
  {
16
  $result->Status = $chatStatus;
17
  }
18
- return json_encode($result);
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
  }
@@ -55,7 +68,20 @@ class TCXAjaxResponse
55
  public static function success_ajax_respose($data)
56
  {
57
  $result = self::create_ajax_response($data);
58
- return json_encode($result);
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
  }
15
  {
16
  $result->Status = $chatStatus;
17
  }
18
+ $json_data = json_encode($result);
19
+ if(json_last_error()===JSON_ERROR_UTF8)
20
+ {
21
+ $json_data = TCXUtilsHelper::wplc_json_encode($result);
22
+ }
23
+
24
+ if(!empty($json_data) && $json_data!=='false')
25
+ {
26
+ return $json_data;
27
+ }
28
+ else
29
+ {
30
+ return "{'JsonError':'". json_last_error()."'}";
31
+ }
32
  }
33
 
34
  }
68
  public static function success_ajax_respose($data)
69
  {
70
  $result = self::create_ajax_response($data);
71
+ $json_data = json_encode($result);
72
+ if(json_last_error()===JSON_ERROR_UTF8)
73
+ {
74
+ $json_data = TCXUtilsHelper::wplc_json_encode($result);
75
+ }
76
+
77
+ if(!empty($json_data) && $json_data!=='false')
78
+ {
79
+ return $json_data;
80
+ }
81
+ else
82
+ {
83
+ return "{'JsonError':'". json_last_error()."'}";
84
+ }
85
  }
86
 
87
  }
includes/models/custom_field.php CHANGED
@@ -17,10 +17,10 @@ class TCXCustomField
17
  public function getStatusName(){
18
  if( $this->status ){
19
  return __("Active", 'wp-live-chat-support');
20
- } else {
21
  return __("Inactive", 'wp-live-chat-support');
22
  }
23
- }
24
 
25
  public function getTypeName(){
26
 
17
  public function getStatusName(){
18
  if( $this->status ){
19
  return __("Active", 'wp-live-chat-support');
20
+ } else {
21
  return __("Inactive", 'wp-live-chat-support');
22
  }
23
+ }
24
 
25
  public function getTypeName(){
26
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat
4
  Requires at least: 5.3
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.4
7
- Stable tag: 9.0.11
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
@@ -159,6 +159,9 @@ If the live chat box still does not appear on your website, please go through th
159
  Huge update with over 300 changes that include: Bugfixes, Vulnerability Fixes & Plugin Security, Plugin Optimization & Rebranding Updates. We suggest you remove any existing installations of this plugin and install 8.1.x fresh.
160
 
161
  == Changelog ==
 
 
 
162
  = 9.0.12 - 2020-07-31 =
163
  * Fix utf8 encoding on settings json.
164
 
4
  Requires at least: 5.3
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.4
7
+ Stable tag: 9.0.13
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
159
  Huge update with over 300 changes that include: Bugfixes, Vulnerability Fixes & Plugin Security, Plugin Optimization & Rebranding Updates. We suggest you remove any existing installations of this plugin and install 8.1.x fresh.
160
 
161
  == Changelog ==
162
+ = 9.0.13 - 2020-08-03 =
163
+ * Fix bug on visitors' chat initialization.
164
+
165
  = 9.0.12 - 2020-07-31 =
166
  * Fix utf8 encoding on settings json.
167
 
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Live Chat by 3CX
4
  Plugin URI: https://www.3cx.com/wp-live-chat/
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.
6
- Version: 9.0.12
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages
3
  Plugin Name: WP-Live Chat by 3CX
4
  Plugin URI: https://www.3cx.com/wp-live-chat/
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.
6
+ Version: 9.0.13
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages