WP Live Chat Support - Version 9.0.15

Version Description

  • 2020-08-06 =
  • Fix broken "Getting Started" wizard.
  • Fix blank settings page issue.
Download this release

Release Info

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

Code changes from version 9.0.14 to 9.0.15

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 9.0.14 - 2020-08-05 =
2
  * Added WordPress 5.5 compatibility fixes.
3
  * Fix multiple chat listings after chat server disconnection.
1
+ = 9.0.15 - 2020-08-06 =
2
+ * Fix broken "Getting Started" wizard.
3
+ * Fix blank settings page issue.
4
+
5
  = 9.0.14 - 2020-08-05 =
6
  * Added WordPress 5.5 compatibility fixes.
7
  * Fix multiple chat listings after chat server disconnection.
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.14");
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.15");
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_14.css → wplc_bootstrap_9_0_15.css} RENAMED
File without changes
includes/helpers/utils_helper.php CHANGED
@@ -740,6 +740,12 @@ class TCXUtilsHelper {
740
  return $mixed;
741
  }
742
 
 
 
 
 
 
 
743
  }
744
 
745
 
740
  return $mixed;
741
  }
742
 
743
+ public static function wplc_get_page_hook( $menu_slug ) {
744
+ $page_part = str_replace( ' ', '-', strtolower( sanitize_title( __( 'Live Chat', 'wp-live-chat-support' ) ) ));
745
+ $result = $page_part . '_page_' . $menu_slug;
746
+
747
+ return $result;
748
+ }
749
  }
750
 
751
 
includes/wplc_admin_menu.php CHANGED
@@ -23,22 +23,22 @@ function wplc_setup_hidden_menu_pages(){
23
  add_filter( 'submenu_file', function($submenu_file){
24
  $screen = get_current_screen();
25
  switch($screen->id){
26
- case "live-chat_page_wplivechat-manage-custom-field":
27
  $submenu_file = "wplivechat-menu-custom-fields";
28
  break;
29
- case "live-chat_page_wplivechat-manage-webhook":
30
  $submenu_file = "wplivechat-menu-webhooks";
31
  break;
32
- case "live-chat_page_wplivechat-manage-department":
33
  $submenu_file = "wplivechat-menu-departments";
34
  break;
35
- case "live-chat_page_wplivechat-manage-trigger":
36
  $submenu_file = "wplivechat-menu-triggers";
37
  break;
38
- case "live-chat_page_wplivechat-manage-quick-response":
39
  $submenu_file = "wplivechat-menu-quick-responses";
40
  break;
41
- case "live-chat_page_wplivechat-session-details":
42
  $submenu_file = "wplivechat-menu-history";
43
  break;
44
  default:
23
  add_filter( 'submenu_file', function($submenu_file){
24
  $screen = get_current_screen();
25
  switch($screen->id){
26
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-manage-custom-field"):
27
  $submenu_file = "wplivechat-menu-custom-fields";
28
  break;
29
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-manage-webhook"):
30
  $submenu_file = "wplivechat-menu-webhooks";
31
  break;
32
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-manage-department"):
33
  $submenu_file = "wplivechat-menu-departments";
34
  break;
35
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-manage-trigger"):
36
  $submenu_file = "wplivechat-menu-triggers";
37
  break;
38
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-manage-quick-response"):
39
  $submenu_file = "wplivechat-menu-quick-responses";
40
  break;
41
+ case TCXUtilsHelper::wplc_get_page_hook("wplivechat-session-details"):
42
  $submenu_file = "wplivechat-menu-history";
43
  break;
44
  default:
modules/activation_wizard/activation_wizard_page.php CHANGED
@@ -11,7 +11,7 @@ function wplc_admin_activation_wizard_menu() {
11
  }
12
 
13
  function wplc_add_activation_wizard_page_resources( $hook ) {
14
- if ( $hook != 'live-chat_page_wplc-getting-started' ) {
15
  return;
16
  }
17
  global $wplc_base_file;
11
  }
12
 
13
  function wplc_add_activation_wizard_page_resources( $hook ) {
14
+ if ( $hook != TCXUtilsHelper::wplc_get_page_hook('wplc-getting-started')) {
15
  return;
16
  }
17
  global $wplc_base_file;
modules/custom_fields/custom_fields_page.php CHANGED
@@ -18,9 +18,9 @@ function wplc_admin_custom_fields_menu(){
18
  function wplc_add_custom_fields_page_resources($hook)
19
  {
20
 
21
- if($hook != 'live-chat_page_wplivechat-manage-custom-field'
22
- && $hook != 'live-chat_page_wplivechat-menu-custom-fields'
23
- && $hook != 'live-chat_page_wplivechat-menu-tools' )
24
  {
25
  return;
26
  }
18
  function wplc_add_custom_fields_page_resources($hook)
19
  {
20
 
21
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-manage-custom-field')
22
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-custom-fields')
23
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
24
  {
25
  return;
26
  }
modules/dashboard/dashboard_page.php CHANGED
@@ -17,7 +17,7 @@ function wplc_admin_dashboard_menu() {
17
  }
18
 
19
  function wplc_add_dashboard_page_resources( $hook ) {
20
- if ( $hook != 'live-chat_page_wplivechat-menu-dashboard' ) {
21
  return;
22
  }
23
  global $wplc_base_file;
17
  }
18
 
19
  function wplc_add_dashboard_page_resources( $hook ) {
20
+ if ( $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-dashboard' )) {
21
  return;
22
  }
23
  global $wplc_base_file;
modules/data_tools/data_tools_page.php CHANGED
@@ -14,7 +14,7 @@ add_action('admin_enqueue_scripts', 'wplc_add_data_tools_page_resources',11);
14
 
15
  function wplc_add_data_tools_page_resources($hook)
16
  {
17
- if($hook != 'live-chat_page_wplivechat-menu-tools' )
18
  {
19
  return;
20
  }
14
 
15
  function wplc_add_data_tools_page_resources($hook)
16
  {
17
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
18
  {
19
  return;
20
  }
modules/departments/departments_page.php CHANGED
@@ -14,9 +14,9 @@ function wplc_admin_departments_menu(){
14
 
15
  function wplc_add_departments_page_resources($hook)
16
  {
17
- if($hook != 'live-chat_page_wplivechat-menu-departments'
18
- && $hook != 'live-chat_page_wplivechat-manage-department'
19
- && $hook != 'live-chat_page_wplivechat-menu-tools' )
20
  {
21
  return;
22
  }
14
 
15
  function wplc_add_departments_page_resources($hook)
16
  {
17
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-departments')
18
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-manage-department')
19
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
20
  {
21
  return;
22
  }
modules/quick_responses/quick_responses_page.php CHANGED
@@ -15,9 +15,9 @@ function wplc_admin_quick_responses_menu(){
15
 
16
  function wplc_add_quick_responses_page_resources($hook)
17
  {
18
- if($hook != 'live-chat_page_wplivechat-manage-quick-response'
19
- && $hook != 'live-chat_page_wplivechat-menu-quick-responses'
20
- && $hook != 'live-chat_page_wplivechat-menu-tools' )
21
  {
22
  return;
23
  }
15
 
16
  function wplc_add_quick_responses_page_resources($hook)
17
  {
18
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-manage-quick-response')
19
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-quick-responses')
20
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
21
  {
22
  return;
23
  }
modules/reports/reports_page.php CHANGED
@@ -13,7 +13,7 @@ function wplc_admin_report_menu(){
13
 
14
  function wplc_add_reports_page_resources($hook)
15
  {
16
- if($hook != 'live-chat_page_wplivechat-menu-reports-page')
17
  {
18
  return;
19
  }
13
 
14
  function wplc_add_reports_page_resources($hook)
15
  {
16
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-reports-page'))
17
  {
18
  return;
19
  }
modules/session_details/session_details_page.php CHANGED
@@ -13,7 +13,7 @@ function wplc_admin_session_details_menu(){
13
  function wplc_add_session_details_page_style($hook)
14
  {
15
  global $wplc_base_file;
16
- if($hook != 'live-chat_page_wplivechat-session-details')
17
  {
18
  return;
19
  }
13
  function wplc_add_session_details_page_style($hook)
14
  {
15
  global $wplc_base_file;
16
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-session-details'))
17
  {
18
  return;
19
  }
modules/sessions/sessions_page.php CHANGED
@@ -18,7 +18,7 @@ function wplc_admin_sessions_menu() {
18
  }
19
 
20
  function wplc_add_sessions_page_resources( $hook ) {
21
- if ( $hook != 'live-chat_page_wplivechat-menu-session' ) {
22
  return;
23
  }
24
  global $wplc_base_file;
18
  }
19
 
20
  function wplc_add_sessions_page_resources( $hook ) {
21
+ if ( $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-session' )) {
22
  return;
23
  }
24
  global $wplc_base_file;
modules/settings/settings_page.php CHANGED
@@ -15,7 +15,7 @@ function wplc_admin_settings_menu(){
15
 
16
  function wplc_add_settings_page_resources($hook)
17
  {
18
- if($hook != 'live-chat_page_wplivechat-menu-settings' )
19
  {
20
  return;
21
  }
15
 
16
  function wplc_add_settings_page_resources($hook)
17
  {
18
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-settings' ))
19
  {
20
  return;
21
  }
modules/support/support_page.php CHANGED
@@ -16,7 +16,7 @@ function wplc_admin_support_menu(){
16
 
17
  function wplc_add_support_page_resources($hook)
18
  {
19
- if($hook != 'live-chat_page_wplivechat-menu-support-page' )
20
  {
21
  return;
22
  }
16
 
17
  function wplc_add_support_page_resources($hook)
18
  {
19
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-support-page' ))
20
  {
21
  return;
22
  }
modules/tools/tools_page.php CHANGED
@@ -17,7 +17,7 @@ function wplc_admin_tools_menu(){
17
  }
18
 
19
  function wplc_add_tools_page_resources( $hook ) {
20
- if($hook != 'live-chat_page_wplivechat-menu-tools' )
21
  {
22
  return;
23
  }
17
  }
18
 
19
  function wplc_add_tools_page_resources( $hook ) {
20
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
21
  {
22
  return;
23
  }
modules/triggers/triggers_page.php CHANGED
@@ -15,8 +15,8 @@ function wplc_admin_triggers_menu(){
15
 
16
  function wplc_add_triggers_page_resources($hook)
17
  {
18
- if($hook != 'live-chat_page_wplivechat-manage-trigger'
19
- && $hook != 'live-chat_page_wplivechat-menu-triggers' )
20
  {
21
  return;
22
  }
15
 
16
  function wplc_add_triggers_page_resources($hook)
17
  {
18
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-manage-trigger')
19
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-triggers' ))
20
  {
21
  return;
22
  }
modules/webhooks/webhooks_page.php CHANGED
@@ -14,9 +14,9 @@ function wplc_admin_webhooks_menu(){
14
 
15
  function wplc_add_webhooks_page_resources($hook)
16
  {
17
- if($hook != 'live-chat_page_wplivechat-manage-webhook'
18
- && $hook != 'live-chat_page_wplivechat-menu-webhooks'
19
- && $hook != 'live-chat_page_wplivechat-menu-tools' )
20
  {
21
  return;
22
  }
14
 
15
  function wplc_add_webhooks_page_resources($hook)
16
  {
17
+ if($hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-manage-webhook')
18
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-webhooks')
19
+ && $hook != TCXUtilsHelper::wplc_get_page_hook('wplivechat-menu-tools' ))
20
  {
21
  return;
22
  }
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: WP-LiveChat, wordpress3cx, wp3cx
3
  Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
4
  Requires at least: 5.3
5
- Tested up to: 5.4.2
6
  Requires PHP: 5.4
7
- Stable tag: 9.0.14
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.14 - 2020-08-05 =
163
  * Added WordPress 5.5 compatibility fixes.
164
  * Fix multiple chat listings after chat server disconnection.
2
  Contributors: WP-LiveChat, wordpress3cx, wp3cx
3
  Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
4
  Requires at least: 5.3
5
+ Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 9.0.15
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.15 - 2020-08-06 =
163
+ * Fix broken "Getting Started" wizard.
164
+ * Fix blank settings page issue.
165
+
166
  = 9.0.14 - 2020-08-05 =
167
  * Added WordPress 5.5 compatibility fixes.
168
  * Fix multiple chat listings after chat server disconnection.
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.14
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.15
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages