Version Description
- bug fixes
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3.0 to 4.3.1
- changelog.txt +3 -0
- livechat.php +1 -1
- plugin_files/LiveChatAdmin.class.php +25 -7
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
3 |
= 4.3.0 =
|
4 |
* bug fixes
|
5 |
* disconnect option added
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 4.3.1 =
|
4 |
+
* bug fixes
|
5 |
+
|
6 |
= 4.3.0 =
|
7 |
* bug fixes
|
8 |
* disconnect option added
|
livechat.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.livechat.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.livechat.com
|
8 |
-
Version: 4.3.
|
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.livechat.com
|
8 |
+
Version: 4.3.1
|
9 |
Text Domain: wp-live-chat-software-for-wordpress
|
10 |
Domain Path: /languages
|
11 |
*/
|
plugin_files/LiveChatAdmin.class.php
CHANGED
@@ -326,18 +326,36 @@ final class LiveChatAdmin extends LiveChat {
|
|
326 |
* @return bool
|
327 |
*/
|
328 |
private function check_review_notice_conditions() {
|
329 |
-
if (
|
330 |
-
$
|
331 |
-
|
332 |
-
$
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
}
|
337 |
|
338 |
return false;
|
339 |
}
|
340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
/**
|
342 |
* Registers actions required for connect notice
|
343 |
*
|
326 |
* @return bool
|
327 |
*/
|
328 |
private function check_review_notice_conditions() {
|
329 |
+
if (
|
330 |
+
$this->is_installed() &&
|
331 |
+
! $this->check_if_review_notice_was_dismissed() &&
|
332 |
+
$this->get_time_since_connection() >= $this->get_offset_time() &&
|
333 |
+
$this->check_if_license_is_active()
|
334 |
+
) {
|
335 |
+
return true;
|
336 |
}
|
337 |
|
338 |
return false;
|
339 |
}
|
340 |
|
341 |
+
/**
|
342 |
+
* Returns offset time in seconds.
|
343 |
+
*
|
344 |
+
* @return int
|
345 |
+
*/
|
346 |
+
private function get_offset_time() {
|
347 |
+
return 60 * 60 * 24 * $this->get_review_notice_start_timestamp_offset();
|
348 |
+
}
|
349 |
+
|
350 |
+
/**
|
351 |
+
* Returns time in seconds since plugin conneciton.
|
352 |
+
*
|
353 |
+
* @return int
|
354 |
+
*/
|
355 |
+
private function get_time_since_connection() {
|
356 |
+
return time() - $this->get_review_notice_start_timestamp();
|
357 |
+
}
|
358 |
+
|
359 |
/**
|
360 |
* Registers actions required for connect notice
|
361 |
*
|
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, wordpress chat,
|
4 |
-
Stable tag: 4.3.
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.4
|
7 |
Requires at least: 4.0
|
@@ -352,6 +352,9 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
|
|
352 |
|
353 |
== Changelog ==
|
354 |
|
|
|
|
|
|
|
355 |
= 4.3.0 =
|
356 |
* bug fixes
|
357 |
* disconnect option added
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live chat, chat plugin, live chat plugin, wordpress live chat, wordpress chat,
|
4 |
+
Stable tag: 4.3.1
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.4
|
7 |
Requires at least: 4.0
|
352 |
|
353 |
== Changelog ==
|
354 |
|
355 |
+
= 4.3.1 =
|
356 |
+
* bug fixes
|
357 |
+
|
358 |
= 4.3.0 =
|
359 |
* bug fixes
|
360 |
* disconnect option added
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit4835bab592b9be246f235538ef1b7d6c::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitbba67021b663d39bb6111ac0740e7a0e
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit4835bab592b9be246f235538ef1b7d6c
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit4835bab592b9be246f235538ef1b7d6c', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit4835bab592b9be246f235538ef1b7d6c', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit4835bab592b9be246f235538ef1b7d6c::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'L' =>
|
@@ -72,9 +72,9 @@ class ComposerStaticInitbba67021b663d39bb6111ac0740e7a0e
|
|
72 |
public static function getInitializer(ClassLoader $loader)
|
73 |
{
|
74 |
return \Closure::bind(function () use ($loader) {
|
75 |
-
$loader->prefixLengthsPsr4 =
|
76 |
-
$loader->prefixDirsPsr4 =
|
77 |
-
$loader->classMap =
|
78 |
|
79 |
}, null, ClassLoader::class);
|
80 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit4835bab592b9be246f235538ef1b7d6c
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'L' =>
|
72 |
public static function getInitializer(ClassLoader $loader)
|
73 |
{
|
74 |
return \Closure::bind(function () use ($loader) {
|
75 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit4835bab592b9be246f235538ef1b7d6c::$prefixLengthsPsr4;
|
76 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit4835bab592b9be246f235538ef1b7d6c::$prefixDirsPsr4;
|
77 |
+
$loader->classMap = ComposerStaticInit4835bab592b9be246f235538ef1b7d6c::$classMap;
|
78 |
|
79 |
}, null, ClassLoader::class);
|
80 |
}
|