WP Live Chat Support - Version 4.1.9

Version Description

2014-10-10 - Low priority = * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.

Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 4.1.9
Comparing to
See all releases

Code changes from version 4.1.8 to 4.1.9

Files changed (2) hide show
  1. readme.txt +3 -0
  2. wp-live-chat-support.php +10 -7
readme.txt CHANGED
@@ -123,6 +123,9 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
123
 
124
  == Changelog ==
125
 
 
 
 
126
  = 4.1.8 2014-10-08 - Low priority =
127
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
128
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
123
 
124
  == Changelog ==
125
 
126
+ = 4.1.9 2014-10-10 - Low priority =
127
+ * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
128
+
129
  = 4.1.8 2014-10-08 - Low priority =
130
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
131
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
wp-live-chat-support.php CHANGED
@@ -3,13 +3,16 @@
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
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 Support. No third party connection required!
6
- Version: 4.1.8
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
- /* 4.1.8
 
 
 
13
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
14
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
15
  * New feature: Turn the chat on/off on a mobile device (smart phone and tablets)
@@ -69,7 +72,7 @@ global $wplc_tblname_chats;
69
  global $wplc_tblname_msgs;
70
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
71
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
72
- $wplc_version = "4.1.8";
73
 
74
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
75
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");
@@ -88,7 +91,6 @@ if (function_exists('wplc_head_pro')) {
88
  add_action('admin_head', 'wplc_head_basic');
89
  }
90
 
91
-
92
  add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet' );
93
  add_action('admin_enqueue_scripts', 'wplc_add_admin_stylesheet');
94
 
@@ -101,12 +103,13 @@ add_action('admin_head', 'wplc_superadmin_javascript');
101
  register_activation_hook( __FILE__, 'wplc_activate' );
102
 
103
 
104
- require_once (plugin_dir_path( __FILE__ ).'includes/Mobile_Detect.php');
105
-
 
 
106
  $wplc_detect_device = new Mobile_Detect;
107
 
108
  $wplc_is_mobile = $wplc_detect_device->isMobile();
109
-
110
 
111
  function wplc_basic_check(){
112
  // check if basic exists if pro is installed
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
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 Support. No third party connection required!
6
+ Version: 4.1.9
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
+ /* 4.1.9
13
+ * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
14
+ *
15
+ * 4.1.8
16
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
17
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
18
  * New feature: Turn the chat on/off on a mobile device (smart phone and tablets)
72
  global $wplc_tblname_msgs;
73
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
74
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
75
+ $wplc_version = "4.1.9";
76
 
77
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
78
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");
91
  add_action('admin_head', 'wplc_head_basic');
92
  }
93
 
 
94
  add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet' );
95
  add_action('admin_enqueue_scripts', 'wplc_add_admin_stylesheet');
96
 
103
  register_activation_hook( __FILE__, 'wplc_activate' );
104
 
105
 
106
+ if(!class_exists('Mobile_Detect')){
107
+ require_once (plugin_dir_path( __FILE__ ).'includes/Mobile_Detect.php');
108
+ }
109
+
110
  $wplc_detect_device = new Mobile_Detect;
111
 
112
  $wplc_is_mobile = $wplc_detect_device->isMobile();
 
113
 
114
  function wplc_basic_check(){
115
  // check if basic exists if pro is installed