LiveChat – WP live chat plugin for WordPress - Version 3.8.2

Version Description

  • plugin usage tracking enhancements
Download this release

Release Info

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

Code changes from version 3.8.0 to 3.8.2

languages/wp-live-chat-software-for-wordpress.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: wp-live-chat-software-for-wordpress\n"
5
- "POT-Creation-Date: 2019-09-04 11:39+0200\n"
6
  "PO-Revision-Date: 2018-10-17 01:07+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: LiveChat, Inc <apps@livechatinc.com>\n"
@@ -17,9 +17,9 @@ msgstr ""
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
- #: ../plugin_files/LiveChatAdmin.class.php:226
21
- #: ../plugin_files/LiveChatAdmin.class.php:227
22
- #: ../plugin_files/LiveChatAdmin.class.php:267
23
  msgid "Settings"
24
  msgstr ""
25
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: wp-live-chat-software-for-wordpress\n"
5
+ "POT-Creation-Date: 2019-09-05 11:54+0200\n"
6
  "PO-Revision-Date: 2018-10-17 01:07+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: LiveChat, Inc <apps@livechatinc.com>\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../plugin_files/LiveChatAdmin.class.php:229
21
+ #: ../plugin_files/LiveChatAdmin.class.php:230
22
+ #: ../plugin_files/LiveChatAdmin.class.php:270
23
  msgid "Settings"
24
  msgstr ""
25
 
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.8.0
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.8.2
9
  Text Domain: wp-live-chat-software-for-wordpress
10
  Domain Path: /languages
11
  */
plugin_files/LiveChatAdmin.class.php CHANGED
@@ -65,7 +65,10 @@ final class LiveChatAdmin extends LiveChat
65
  }
66
 
67
  add_action('admin_init', array($this, 'handle_post'));
68
- add_action('in_admin_header', array($this, 'show_deactivation_feedback_form'));
 
 
 
69
  }
70
 
71
  public function handle_post() {
65
  }
66
 
67
  add_action('admin_init', array($this, 'handle_post'));
68
+
69
+ if (array_key_exists('SCRIPT_NAME', $_SERVER) && strpos($_SERVER['SCRIPT_NAME'], 'plugins.php')) {
70
+ add_action('in_admin_header', array($this, 'show_deactivation_feedback_form'));
71
+ }
72
  }
73
 
74
  public function handle_post() {
plugin_files/css/livechat-general.css CHANGED
@@ -356,6 +356,7 @@ p.lc-meta-text {
356
  }
357
 
358
  #lc-deactivation-feedback-modal-overlay.lc-modal-base__overlay--visible {
 
359
  opacity: 1;
360
  transition: opacity 1s;
361
  }
356
  }
357
 
358
  #lc-deactivation-feedback-modal-overlay.lc-modal-base__overlay--visible {
359
+ display: flex !important;
360
  opacity: 1;
361
  transition: opacity 1s;
362
  }
plugin_files/helpers/DeactivationFeedbackFormHelper.class.php CHANGED
@@ -9,7 +9,7 @@ class DeactivationFeedbackFormHelper extends LiveChatHelper {
9
  $license_id = LiveChat::get_instance()->get_license_number();
10
 
11
  ?>
12
- <div class="lc-design-system-typography lc-modal-base__overlay" id="lc-deactivation-feedback-modal-overlay">
13
  <div class="lc-modal-base" id="lc-deactivation-feedback-modal-container">
14
  <button title="<?php _e('Cancel', 'wp-live-chat-software-for-wordpress') ?>" class="lc-modal-base__close">
15
  <svg
9
  $license_id = LiveChat::get_instance()->get_license_number();
10
 
11
  ?>
12
+ <div class="lc-design-system-typography lc-modal-base__overlay" id="lc-deactivation-feedback-modal-overlay" style="display: none">
13
  <div class="lc-modal-base" id="lc-deactivation-feedback-modal-container">
14
  <button title="<?php _e('Cancel', 'wp-live-chat-software-for-wordpress') ?>" class="lc-modal-base__close">
15
  <svg
plugin_files/helpers/InstallHelper.class.php CHANGED
@@ -15,10 +15,10 @@ class InstallHelper extends LiveChatHelper {
15
  <div class="lc-design-system-typography lc-table">
16
  <div class="lc-column">
17
  <p id="lc-plus-wp">
18
- <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png" srcset="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png, <?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp@2x.png 2x" alt="LiveChat for Wordpress" class="logo">
19
  </p>
20
  <p>
21
- <iframe id="login-with-livechat" src="https://addons.livechatinc.com/sign-in-with-livechat/wordpress/?designSystem=1&popupRoute=signup%2Fcredentials&a=wordpress&utm_source=wordpress.org&utm_medium=integration&utm_campaign=wordpress_plugin&email=<?php echo urlencode($user['email']); ?>&name=<?php echo urlencode($user['name']); ?>&url=<?php echo urlencode($url) ?>" > </iframe>
22
  </p>
23
  <form id="licenseForm" action="?page=livechat_settings&actionType=install<?php $this->add_nonce(); ?>" method="post">
24
  <input type="hidden" name="licenseEmail" id="licenseEmail">
@@ -27,7 +27,7 @@ class InstallHelper extends LiveChatHelper {
27
  </div>
28
  <div class="lc-column">
29
  <p>
30
- <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress').'/plugin_files/images/livechat-app.png'; ?>" alt="LiveChat apps" id="lc-app-img">
31
  </p>
32
  <p>
33
  <?php _e('Check out our apps for', 'wp-live-chat-software-for-wordpress'); ?>
15
  <div class="lc-design-system-typography lc-table">
16
  <div class="lc-column">
17
  <p id="lc-plus-wp">
18
+ <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png" srcset="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png, <?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp@2x.png 2x" alt="LiveChat for Wordpress">
19
  </p>
20
  <p>
21
+ <iframe id="login-with-livechat" src="https://addons.livechatinc.com/sign-in-with-livechat/wordpress/?designSystem=1&popupRoute=signup&partner_id=wordpress&utm_source=wordpress.org&utm_medium=integration&utm_campaign=wordpress_plugin&email=<?php echo urlencode($user['email']); ?>&name=<?php echo urlencode($user['name']); ?>&url=<?php echo urlencode($url) ?>" > </iframe>
22
  </p>
23
  <form id="licenseForm" action="?page=livechat_settings&actionType=install<?php $this->add_nonce(); ?>" method="post">
24
  <input type="hidden" name="licenseEmail" id="licenseEmail">
27
  </div>
28
  <div class="lc-column">
29
  <p>
30
+ <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress').'/plugin_files/images/lc-app.png'; ?>" alt="LiveChat apps" id="lc-app-img">
31
  </p>
32
  <p>
33
  <?php _e('Check out our apps for', 'wp-live-chat-software-for-wordpress'); ?>
plugin_files/helpers/SettingsHelper.class.php CHANGED
@@ -26,7 +26,7 @@ class SettingsHelper extends LiveChatHelper
26
  <div class="lc-design-system-typography lc-table">
27
  <div class="lc-column">
28
  <p id="lc-plus-wp">
29
- <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png" srcset="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png, <?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp@2x.png 2x" alt="LiveChat for Wordpress" class="logo">
30
  </p>
31
  <p>
32
  <?php _e('Currently you are using your', 'wp-live-chat-software-for-wordpress'); ?><br>
@@ -75,7 +75,7 @@ class SettingsHelper extends LiveChatHelper
75
  </div>
76
  <div class="lc-column">
77
  <p>
78
- <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress').'/plugin_files/images/livechat-app.png'; ?>" alt="LiveChat apps" id="lc-app-img">
79
  </p>
80
  <p>
81
  <?php _e('Check out our apps for', 'wp-live-chat-software-for-wordpress'); ?>
26
  <div class="lc-design-system-typography lc-table">
27
  <div class="lc-column">
28
  <p id="lc-plus-wp">
29
+ <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png" srcset="<?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp.png, <?php echo plugins_url('wp-live-chat-software-for-wordpress'); ?>/plugin_files/images/lc-plus-wp@2x.png 2x" alt="LiveChat for Wordpress">
30
  </p>
31
  <p>
32
  <?php _e('Currently you are using your', 'wp-live-chat-software-for-wordpress'); ?><br>
75
  </div>
76
  <div class="lc-column">
77
  <p>
78
+ <img src="<?php echo plugins_url('wp-live-chat-software-for-wordpress').'/plugin_files/images/lc-app.png'; ?>" alt="LiveChat apps" id="lc-app-img">
79
  </p>
80
  <p>
81
  <?php _e('Check out our apps for', 'wp-live-chat-software-for-wordpress'); ?>
plugin_files/images/{livechat-app.png → lc-app.png} RENAMED
File without changes
plugin_files/js/livechat.js CHANGED
@@ -165,6 +165,9 @@ var LiveChat =
165
  deactivationModalOpenHandler: function() {
166
  var that = this;
167
  $('table.plugins tr[data-slug=' + that.slug + '] span.deactivate a').click(function (e) {
 
 
 
168
  e.preventDefault();
169
  that.deactivationFormHelpers.toggleModal();
170
  })
165
  deactivationModalOpenHandler: function() {
166
  var that = this;
167
  $('table.plugins tr[data-slug=' + that.slug + '] span.deactivate a').click(function (e) {
168
+ if ($('#lc-deactivation-feedback-modal-container').length < 1) {
169
+ return;
170
+ }
171
  e.preventDefault();
172
  that.deactivationFormHelpers.toggleModal();
173
  })
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === LiveChat - WP live chat plugin for WordPress ===
2
  Contributors: LiveChat
3
  Tags: live chat, chat plugin, live chat plugin, wordpress live chat, live support, wordpress chat, chat
4
- Stable tag: 3.8.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.2.2
7
  Requires at least: 3.4
@@ -382,6 +382,12 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
382
 
383
  == Changelog ==
384
 
 
 
 
 
 
 
385
  = 3.8.0 =
386
  * plugin redesign
387
- * deactivation feedback form
1
  === LiveChat - WP live chat plugin for WordPress ===
2
  Contributors: LiveChat
3
  Tags: live chat, chat plugin, live chat plugin, wordpress live chat, live support, wordpress chat, chat
4
+ Stable tag: 3.8.2
5
  Requires PHP: 5.6
6
  Tested up to: 5.2.2
7
  Requires at least: 3.4
382
 
383
  == Changelog ==
384
 
385
+ = 3.8.2 =
386
+ * plugin usage tracking enhancements
387
+
388
+ = 3.8.1 =
389
+ * more secure way of displaying deactivation feedback modal
390
+
391
  = 3.8.0 =
392
  * plugin redesign
393
+ * deactivation feedback modal