WP Live Chat Support - Version 9.1.2

Version Description

  • 2020-11-18 =
  • Hot Fix settings validation when on Hosted Mode
Download this release

Release Info

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

Code changes from version 9.1.1 to 9.1.2

changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 9.1.1 - 2020-11-18 =
2
  * Removed "On premise" mode.
3
  * Removed Popout window chat for "Hosted" mode.
1
+ = 9.1.2 - 2020-11-18 =
2
+ * Hot Fix settings validation when on Hosted Mode
3
+
4
  = 9.1.1 - 2020-11-18 =
5
  * Removed "On premise" mode.
6
  * Removed Popout window chat for "Hosted" mode.
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.1.1");
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.1.2");
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_1_1.css → wplc_bootstrap_9_1_2.css} RENAMED
File without changes
modules/settings/settings_controller.php CHANGED
@@ -401,7 +401,12 @@ class SettingsController extends BaseController {
401
  $result->ErrorHandleType = "Redirect";
402
  $result->ErrorData->url = admin_url( "admin.php?page=wplivechat-menu-settings" );
403
  } else {
404
- if ( $this->wplc_settings->wplc_channel !== 'phone' ) {
 
 
 
 
 
405
  if ( strlen( $data["wplc_pro_na"] ) == 0 ) {
406
  $result = TCXError::createShowError( sprintf( __( "Field '%s' can't be empty.", 'wp-live-chat-support' ), __( 'Intro message', 'wp-live-chat-support' ) ) );
407
  } else if ( strlen( $data["wplc_pro_chat_email_address"] ) == 0 ) {
@@ -477,11 +482,7 @@ class SettingsController extends BaseController {
477
  $result = TCXError::createShowError( __( "There are conflicts between scheduled chat operating hours.", 'wp-live-chat-support' ) );
478
  } else if ( $business_hours_validation === "PARSE_ERROR" ) {
479
  $result = TCXError::createShowError( __( "Operating hours inserted are invalid.", 'wp-live-chat-support' ) );
480
- } else if( !$this->validate_pbx_url($data["wplc_channel_url"] ) ){
481
- $result = TCXError::createShowError( __( "PBX Url is invalid.", 'wp-live-chat-support' ) );
482
  }
483
-
484
-
485
  }
486
  }
487
 
401
  $result->ErrorHandleType = "Redirect";
402
  $result->ErrorData->url = admin_url( "admin.php?page=wplivechat-menu-settings" );
403
  } else {
404
+ if($this->wplc_settings->wplc_channel === 'phone'){
405
+ if( !$this->validate_pbx_url($data["wplc_channel_url"] ) ){
406
+ $result = TCXError::createShowError( __( "PBX Url is invalid.", 'wp-live-chat-support' ) );
407
+ }
408
+ }
409
+ else if ( $this->wplc_settings->wplc_channel !== 'phone' ) {
410
  if ( strlen( $data["wplc_pro_na"] ) == 0 ) {
411
  $result = TCXError::createShowError( sprintf( __( "Field '%s' can't be empty.", 'wp-live-chat-support' ), __( 'Intro message', 'wp-live-chat-support' ) ) );
412
  } else if ( strlen( $data["wplc_pro_chat_email_address"] ) == 0 ) {
482
  $result = TCXError::createShowError( __( "There are conflicts between scheduled chat operating hours.", 'wp-live-chat-support' ) );
483
  } else if ( $business_hours_validation === "PARSE_ERROR" ) {
484
  $result = TCXError::createShowError( __( "Operating hours inserted are invalid.", 'wp-live-chat-support' ) );
 
 
485
  }
 
 
486
  }
487
  }
488
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: chat plugin, live chat, live help, live support, wordpress live chat
4
  Requires at least: 5.3
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
- Stable tag: 9.1.1
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
@@ -148,6 +148,8 @@ If the live chat box still does not appear on your website, please go through th
148
  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.
149
 
150
  == Changelog ==
 
 
151
 
152
  = 9.1.1 - 2020-11-18 =
153
  * Removed "On premise" mode.
4
  Requires at least: 5.3
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 9.1.2
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
148
  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.
149
 
150
  == Changelog ==
151
+ = 9.1.2 - 2020-11-18 =
152
+ * Hot Fix settings validation when on Hosted Mode
153
 
154
  = 9.1.1 - 2020-11-18 =
155
  * Removed "On premise" mode.
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: 3CX Live Chat
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 3CX Live Chat.
6
- Version: 9.1.1
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages
3
  Plugin Name: 3CX Live Chat
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 3CX Live Chat.
6
+ Version: 9.1.2
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages