WP Live Chat Support - Version 7.1.08

Version Description

  • 2018-01-04 - Low priority =
  • PHP 7 compatibility
Download this release

Release Info

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

Code changes from version 7.1.07 to 7.1.08

css/font-awesome.min.css CHANGED
File without changes
fonts/FontAwesome.otf CHANGED
File without changes
fonts/fontawesome-webfont.eot CHANGED
File without changes
fonts/fontawesome-webfont.svg CHANGED
File without changes
fonts/fontawesome-webfont.ttf CHANGED
File without changes
fonts/fontawesome-webfont.woff CHANGED
File without changes
readme.txt CHANGED
@@ -229,6 +229,9 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.4.0
229
 
230
  == Changelog ==
231
 
 
 
 
232
  = 7.1.07 - 2017-11-06 - High priority =
233
  * Patched a security exploit found by James @ Pritect, Inc. Thank you James!
234
 
229
 
230
  == Changelog ==
231
 
232
+ = 7.1.08 - 2018-01-04 - Low priority =
233
+ * PHP 7 compatibility
234
+
235
  = 7.1.07 - 2017-11-06 - High priority =
236
  * Patched a security exploit found by James @ Pritect, Inc. Thank you James!
237
 
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
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: 7.1.07
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
@@ -11,6 +11,9 @@
11
  */
12
 
13
  /**
 
 
 
14
  * 7.1.07 - 2017-11-06 - High priority
15
  * Patched a security exploit found by James @ Pritect, Inc. Thank you James!
16
  *
@@ -568,7 +571,7 @@ global $debug_start;
568
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
569
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
570
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
571
- $wplc_version = "7.1.07";
572
 
573
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
574
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
@@ -1262,7 +1265,12 @@ function wplc_push_js_to_front_basic() {
1262
  if (isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != "") { $wplc_user_gravatar = sanitize_text_field(md5(strtolower(trim($_COOKIE['wplc_email'])))); } else {$wplc_user_gravatar = ""; }
1263
 
1264
  if ($wplc_user_gravatar != "") { $wplc_grav_image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=30' class='wplc-user-message-avatar' />";} else { $wplc_grav_image = "";}
1265
- wp_localize_script('wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image);
 
 
 
 
 
1266
 
1267
  $wplc_hide_chat = "";
1268
  if (get_option('WPLC_HIDE_CHAT') == TRUE) { $wplc_hide_chat = "yes"; } else { $wplc_hide_chat = null; }
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: 7.1.08
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
11
  */
12
 
13
  /**
14
+ * 7.1.08 - 2018-01-04 - Low priority
15
+ * Added PHP 7 compatibility
16
+ *
17
  * 7.1.07 - 2017-11-06 - High priority
18
  * Patched a security exploit found by James @ Pritect, Inc. Thank you James!
19
  *
571
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
572
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
573
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
574
+ $wplc_version = "7.1.08";
575
 
576
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
577
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
1265
  if (isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != "") { $wplc_user_gravatar = sanitize_text_field(md5(strtolower(trim($_COOKIE['wplc_email'])))); } else {$wplc_user_gravatar = ""; }
1266
 
1267
  if ($wplc_user_gravatar != "") { $wplc_grav_image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=30' class='wplc-user-message-avatar' />";} else { $wplc_grav_image = "";}
1268
+
1269
+ if ( ! empty($wpcl_grav_image ) ) {
1270
+ wp_localize_script( 'wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image );
1271
+ } else {
1272
+ wp_localize_script( 'wplc-user-script', 'wplc_gravatar_image', ' ' );
1273
+ }
1274
 
1275
  $wplc_hide_chat = "";
1276
  if (get_option('WPLC_HIDE_CHAT') == TRUE) { $wplc_hide_chat = "yes"; } else { $wplc_hide_chat = null; }