WP Live Chat Support - Version 9.0.23

Version Description

  • 2020-09-11 =
  • Code cleanup.
  • Improvement in 3CX Hosted Chat functionality.
Download this release

Release Info

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

Code changes from version 9.0.22 to 9.0.23

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 9.0.22 - 2020-09-10 =
2
  * Fix dashboard online visitors / agents update.
3
  * Fix agent's status report.
1
+ = 9.0.23 - 2020-09-11 =
2
+ * Code cleanup.
3
+ * Improvement in 3CX Hosted Chat functionality.
4
+
5
  = 9.0.22 - 2020-09-10 =
6
  * Fix dashboard online visitors / agents update.
7
  * Fix agent's status report.
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.22");
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.23");
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_22.css → wplc_bootstrap_9_0_23.css} RENAMED
File without changes
functions.php CHANGED
@@ -92,22 +92,6 @@ function wplc_fitler_mailer_bg_color( $default_color ) {
92
  }
93
 
94
 
95
- add_action( "init", "wplc_control_logged_out_mrg" );
96
- function wplc_control_logged_out_mrg() {
97
- if ( ! isset( $_GET['role'] ) ) {
98
- add_action( 'pre_get_users', 'wplc_advanced_access_manager_compatibility_mrg', 1000 );
99
- return true;
100
- } else {
101
- return false;
102
- }
103
- }
104
-
105
- /**
106
- * Advanced Access Manager compatibility.
107
- */
108
- function wplc_advanced_access_manager_compatibility_mrg( $query ) {
109
- $query->query_vars['role__not_in'] = array();
110
- }
111
 
112
  //node server
113
 
92
  }
93
 
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  //node server
97
 
js/wplc_initiate.js CHANGED
@@ -105,7 +105,6 @@ function wplc_init_heartbeat() {
105
 
106
  function wplc_init_keep_alive(){
107
  setInterval(()=>{
108
- console.log("Keep me alive");
109
  wplc_keep_alive_call();
110
  },5*60*1000)//
111
  }
105
 
106
  function wplc_init_keep_alive(){
107
  setInterval(()=>{
 
108
  wplc_keep_alive_call();
109
  },5*60*1000)//
110
  }
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.5
6
  Requires PHP: 5.4
7
- Stable tag: 9.0.22
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,10 @@ 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.22 - 2020-09-10 =
163
  * Fix dashboard online visitors / agents update.
164
  * Fix agent's status report.
4
  Requires at least: 5.3
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 9.0.23
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.23 - 2020-09-11 =
163
+ * Code cleanup.
164
+ * Improvement in 3CX Hosted Chat functionality.
165
+
166
  = 9.0.22 - 2020-09-10 =
167
  * Fix dashboard online visitors / agents update.
168
  * Fix agent's status report.
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.22
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages
@@ -282,18 +282,26 @@ function wplc_check_guid( $force_update = false, $uninstall = false ) {
282
  }
283
 
284
  $gdpr = wplc_parameter_bool( $wplc_settings, 'wplc_gdpr_enabled' );
 
 
 
 
 
 
285
  $data_array = array(
286
  'method' => 'POST',
287
  'body' => array(
288
- 'method' => 'get_guid',
289
- 'url' => get_option( 'siteurl' ),
290
- 'server' => $server,
291
- 'gdpr' => $gdpr,
292
- 'version' => WPLC_PLUGIN_VERSION,
 
293
  'uninstall' => $uninstall ? 1 : 0
294
  )
295
  );
296
- $response = wp_remote_post( WPLC_ACTIVATION_SERVER . '/api/v1', $data_array );
 
297
  update_option( 'WPLC_GUID', '' );
298
  if ( is_array( $response ) ) {
299
  if ( $response['response']['code'] == "200" ) {
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.23
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages
282
  }
283
 
284
  $gdpr = wplc_parameter_bool( $wplc_settings, 'wplc_gdpr_enabled' );
285
+
286
+ $pbx_url_string = '';
287
+ if( $wplc_settings->wplc_channel === 'phone'){
288
+ $pbx_url = parse_url( esc_url_raw( $wplc_settings->wplc_channel_url ) ) ;
289
+ $pbx_url_string = ( array_key_exists( 'scheme', $pbx_url ) ? $pbx_url['scheme'] : '' ) . "://" . $pbx_url['host'] . ( array_key_exists( 'port', $pbx_url ) ? ":" . $pbx_url['port'] : '' );
290
+ }
291
  $data_array = array(
292
  'method' => 'POST',
293
  'body' => array(
294
+ 'method' => 'get_guid',
295
+ 'url' => get_option( 'siteurl' ),
296
+ 'server' => $server,
297
+ 'gdpr' => $gdpr,
298
+ 'version' => WPLC_PLUGIN_VERSION,
299
+ 'pbxurl' => $pbx_url_string,
300
  'uninstall' => $uninstall ? 1 : 0
301
  )
302
  );
303
+
304
+ $response = wp_remote_post( WPLC_ACTIVATION_SERVER . '/api/v1', $data_array );
305
  update_option( 'WPLC_GUID', '' );
306
  if ( is_array( $response ) ) {
307
  if ( $response['response']['code'] == "200" ) {