LiveChat – WP live chat plugin for WordPress - Version 3.7.6

Version Description

  • yet another security improvement, better security check for database operations
Download this release

Release Info

Developer livechat
Plugin Icon 128x128 LiveChat – WP live chat plugin for WordPress
Version 3.7.6
Comparing to
See all releases

Code changes from version 3.7.5 to 3.7.6

livechat.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.livechatinc.com/addons/wordpress/
5
  Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
6
  Author: LiveChat
7
  Author URI: https://www.livechatinc.com
8
- Version: 3.7.5
9
  Text Domain: wp-live-chat-software-for-wordpress
10
  Domain Path: /languages
11
  */
5
  Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
6
  Author: LiveChat
7
  Author URI: https://www.livechatinc.com
8
+ Version: 3.7.6
9
  Text Domain: wp-live-chat-software-for-wordpress
10
  Domain Path: /languages
11
  */
plugin_files/LiveChatAdmin.class.php CHANGED
@@ -41,12 +41,12 @@ final class LiveChatAdmin extends LiveChat
41
  {
42
  parent::__construct();
43
 
44
- add_action( 'init', array( $this, 'load_translations' ) );
45
- add_action( 'init', array( $this, 'load_menu_icon_styles' ) );
46
 
47
  // notice action
48
  if ( $this->check_review_notice_conditions() ) {
49
- add_action( 'init', array( $this, 'load_review_scripts' ) );
50
  add_action( 'wp_ajax_lc_review_dismiss', array( $this, 'ajax_review_dismiss' ) );
51
  add_action( 'wp_ajax_lc_review_postpone', array( $this, 'ajax_review_postpone' ) );
52
  add_action( 'admin_notices', array( $this, 'show_review_notice' ) );
@@ -56,21 +56,21 @@ final class LiveChatAdmin extends LiveChat
56
  add_action( 'admin_notices', array( $this, 'show_connect_notice' ) );
57
  }
58
 
59
- add_action( 'init', array( $this, 'load_scripts' ) );
60
 
61
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
62
 
63
  // tricky error reporting
64
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true ) {
65
- add_action( 'init', array( $this, 'error_reporting' ) );
66
  }
67
 
68
- add_action( 'init', array( $this, 'handle_post' ) );
69
  }
70
 
71
  public function handle_post() {
72
  if (
73
- is_admin() &&
74
  array_key_exists('nonce', $_GET) &&
75
  wp_verify_nonce($_GET['nonce'], 'livechat-security-check')
76
  ) {
41
  {
42
  parent::__construct();
43
 
44
+ add_action( 'admin_init', array( $this, 'load_translations' ) );
45
+ add_action( 'admin_init', array( $this, 'load_menu_icon_styles' ) );
46
 
47
  // notice action
48
  if ( $this->check_review_notice_conditions() ) {
49
+ add_action( 'admin_init', array( $this, 'load_review_scripts' ) );
50
  add_action( 'wp_ajax_lc_review_dismiss', array( $this, 'ajax_review_dismiss' ) );
51
  add_action( 'wp_ajax_lc_review_postpone', array( $this, 'ajax_review_postpone' ) );
52
  add_action( 'admin_notices', array( $this, 'show_review_notice' ) );
56
  add_action( 'admin_notices', array( $this, 'show_connect_notice' ) );
57
  }
58
 
59
+ add_action( 'admin_init', array( $this, 'load_scripts' ) );
60
 
61
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
62
 
63
  // tricky error reporting
64
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true ) {
65
+ add_action( 'admin_init', array( $this, 'error_reporting' ) );
66
  }
67
 
68
+ add_action( 'admin_init', array( $this, 'handle_post' ) );
69
  }
70
 
71
  public function handle_post() {
72
  if (
73
+ current_user_can('manage_options') &&
74
  array_key_exists('nonce', $_GET) &&
75
  wp_verify_nonce($_GET['nonce'], 'livechat-security-check')
76
  ) {
plugin_files/js/livechat.js CHANGED
@@ -113,7 +113,7 @@ var LiveChat =
113
 
114
  setSettings: function(settings) {
115
  $.ajax({
116
- url: '?page=livechat_settingslcDetails' + lcDetails.nonce,
117
  type: "POST",
118
  data: settings,
119
  dataType: 'json',
113
 
114
  setSettings: function(settings) {
115
  $.ajax({
116
+ url: '?page=livechat_settings' + lcDetails.nonce,
117
  type: "POST",
118
  data: settings,
119
  dataType: 'json',
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === LiveChat - WP live chat plugin for WordPress ===
2
  Contributors: LiveChat
3
  Tags: chat plugin, live chat, live chat plugin, wordpress live chat, wordpress chat, wordpress live chat plugin, wordpress chat plugin, live chat software, live support, help desk, help desk software, online ticketing system, ticketing system, online support, ecommerce chat, chat online, chat software, sales, customer help, customer support, livechat, customer service software, chat, customer service chat, live chat button, live chat support, live chat tool, live chat widget, live support button, live chat solution, online live chat, online chat, wp chat, wp live chat, livechat inc, livechatinc, live chat inc, wp livechat support, smartsupp, smart supp, tidio, jivochat, formilla, tawk, tawkto, tawk.to, facebook, facebook messenger, messenger, facebook live chat, facebook chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, websitealive, website alive, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack, casengo, tagove, wisechat, wise chat, mylivechat, my live chat, livezilla, chatrify
4
- Stable tag: 3.7.5
5
  Requires PHP: 5.6
6
  Tested up to: 5.2
7
  Requires at least: 3.4
@@ -350,6 +350,9 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
350
 
351
  == Changelog ==
352
 
 
 
 
353
  = 3.7.5 =
354
  * security fixes, sanitization in settings view
355
 
1
  === LiveChat - WP live chat plugin for WordPress ===
2
  Contributors: LiveChat
3
  Tags: chat plugin, live chat, live chat plugin, wordpress live chat, wordpress chat, wordpress live chat plugin, wordpress chat plugin, live chat software, live support, help desk, help desk software, online ticketing system, ticketing system, online support, ecommerce chat, chat online, chat software, sales, customer help, customer support, livechat, customer service software, chat, customer service chat, live chat button, live chat support, live chat tool, live chat widget, live support button, live chat solution, online live chat, online chat, wp chat, wp live chat, livechat inc, livechatinc, live chat inc, wp livechat support, smartsupp, smart supp, tidio, jivochat, formilla, tawk, tawkto, tawk.to, facebook, facebook messenger, messenger, facebook live chat, facebook chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, websitealive, website alive, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack, casengo, tagove, wisechat, wise chat, mylivechat, my live chat, livezilla, chatrify
4
+ Stable tag: 3.7.6
5
  Requires PHP: 5.6
6
  Tested up to: 5.2
7
  Requires at least: 3.4
350
 
351
  == Changelog ==
352
 
353
+ = 3.7.6 =
354
+ * yet another security improvement, better security check for database operations
355
+
356
  = 3.7.5 =
357
  * security fixes, sanitization in settings view
358