LiveChat – WP live chat plugin for WordPress - Version 4.4.0

Version Description

  • auto-update feature
Download this release

Release Info

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

Code changes from version 4.3.3 to 4.4.0

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 4.3.3 =
4
  * plugin compatibility bumped to WP in version 5.5
5
 
1
  == Changelog ==
2
 
3
+ = 4.4.0 =
4
+ * auto-update feature
5
+
6
  = 4.3.3 =
7
  * plugin compatibility bumped to WP in version 5.5
8
 
composer.json CHANGED
@@ -4,17 +4,17 @@
4
  "type": "wordpress-module",
5
  "license": "AFL 3.0",
6
  "require": {
7
- "ext-json": "^1.2",
8
- "firebase/php-jwt": "^5.0",
9
  "ext-curl": "*"
10
  },
11
  "require-dev": {
12
  "squizlabs/php_codesniffer": "*",
13
  "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
14
- "wp-coding-standards/wpcs": "^2.1",
15
- "phpunit/phpunit": "~5.7",
16
- "brain/monkey": "^2.3",
17
- "mockery/mockery": "^1.2"
18
  },
19
  "autoload": {
20
  "psr-4": {
4
  "type": "wordpress-module",
5
  "license": "AFL 3.0",
6
  "require": {
7
+ "ext-json": "*",
8
+ "firebase/php-jwt": "^5.2.0",
9
  "ext-curl": "*"
10
  },
11
  "require-dev": {
12
  "squizlabs/php_codesniffer": "*",
13
  "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
14
+ "wp-coding-standards/wpcs": "^2.3.0",
15
+ "phpunit/phpunit": "~5.7.27",
16
+ "brain/monkey": "^2.4.0",
17
+ "mockery/mockery": "^1.3.3"
18
  },
19
  "autoload": {
20
  "psr-4": {
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "44319267ab914685ba448dcbe179dce9",
8
  "packages": [
9
  {
10
  "name": "firebase/php-jwt",
@@ -104,16 +104,16 @@
104
  },
105
  {
106
  "name": "brain/monkey",
107
- "version": "2.4.0",
108
  "source": {
109
  "type": "git",
110
  "url": "https://github.com/Brain-WP/BrainMonkey.git",
111
- "reference": "b3ce8b619c26db6abd01b9dcfd6a2c0254060956"
112
  },
113
  "dist": {
114
  "type": "zip",
115
- "url": "https://api.github.com/repos/Brain-WP/BrainMonkey/zipball/b3ce8b619c26db6abd01b9dcfd6a2c0254060956",
116
- "reference": "b3ce8b619c26db6abd01b9dcfd6a2c0254060956",
117
  "shasum": ""
118
  },
119
  "require": {
@@ -122,9 +122,9 @@
122
  "php": ">=5.6.0"
123
  },
124
  "require-dev": {
125
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4",
126
  "phpcompatibility/php-compatibility": "^9.3.0",
127
- "phpunit/phpunit": "^5.7.9 || ^6.0 || ^7.0"
128
  },
129
  "type": "library",
130
  "extra": {
@@ -166,7 +166,7 @@
166
  "test",
167
  "testing"
168
  ],
169
- "time": "2019-11-24T16:03:21+00:00"
170
  },
171
  {
172
  "name": "dealerdirect/phpcodesniffer-composer-installer",
@@ -290,20 +290,20 @@
290
  },
291
  {
292
  "name": "hamcrest/hamcrest-php",
293
- "version": "v2.0.0",
294
  "source": {
295
  "type": "git",
296
  "url": "https://github.com/hamcrest/hamcrest-php.git",
297
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad"
298
  },
299
  "dist": {
300
  "type": "zip",
301
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/776503d3a8e85d4f9a1148614f95b7a608b046ad",
302
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad",
303
  "shasum": ""
304
  },
305
  "require": {
306
- "php": "^5.3|^7.0"
307
  },
308
  "replace": {
309
  "cordoval/hamcrest-php": "*",
@@ -311,14 +311,13 @@
311
  "kodova/hamcrest-php": "*"
312
  },
313
  "require-dev": {
314
- "phpunit/php-file-iterator": "1.3.3",
315
- "phpunit/phpunit": "~4.0",
316
- "satooshi/php-coveralls": "^1.0"
317
  },
318
  "type": "library",
319
  "extra": {
320
  "branch-alias": {
321
- "dev-master": "2.0-dev"
322
  }
323
  },
324
  "autoload": {
@@ -328,35 +327,35 @@
328
  },
329
  "notification-url": "https://packagist.org/downloads/",
330
  "license": [
331
- "BSD"
332
  ],
333
  "description": "This is the PHP port of Hamcrest Matchers",
334
  "keywords": [
335
  "test"
336
  ],
337
- "time": "2016-01-20T08:20:44+00:00"
338
  },
339
  {
340
  "name": "mockery/mockery",
341
- "version": "1.3.1",
342
  "source": {
343
  "type": "git",
344
  "url": "https://github.com/mockery/mockery.git",
345
- "reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be"
346
  },
347
  "dist": {
348
  "type": "zip",
349
- "url": "https://api.github.com/repos/mockery/mockery/zipball/f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
350
- "reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
351
  "shasum": ""
352
  },
353
  "require": {
354
- "hamcrest/hamcrest-php": "~2.0",
355
  "lib-pcre": ">=7.0",
356
  "php": ">=5.6.0"
357
  },
358
  "require-dev": {
359
- "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0"
360
  },
361
  "type": "library",
362
  "extra": {
@@ -399,7 +398,7 @@
399
  "test double",
400
  "testing"
401
  ],
402
- "time": "2019-12-26T09:49:15+00:00"
403
  },
404
  {
405
  "name": "myclabs/deep-copy",
@@ -902,6 +901,7 @@
902
  "keywords": [
903
  "tokenizer"
904
  ],
 
905
  "time": "2017-12-04T08:55:13+00:00"
906
  },
907
  {
@@ -1561,16 +1561,16 @@
1561
  },
1562
  {
1563
  "name": "squizlabs/php_codesniffer",
1564
- "version": "3.5.5",
1565
  "source": {
1566
  "type": "git",
1567
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
1568
- "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6"
1569
  },
1570
  "dist": {
1571
  "type": "zip",
1572
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
1573
- "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
1574
  "shasum": ""
1575
  },
1576
  "require": {
@@ -1608,20 +1608,20 @@
1608
  "phpcs",
1609
  "standards"
1610
  ],
1611
- "time": "2020-04-17T01:09:41+00:00"
1612
  },
1613
  {
1614
  "name": "symfony/polyfill-ctype",
1615
- "version": "v1.17.1",
1616
  "source": {
1617
  "type": "git",
1618
  "url": "https://github.com/symfony/polyfill-ctype.git",
1619
- "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d"
1620
  },
1621
  "dist": {
1622
  "type": "zip",
1623
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
1624
- "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
1625
  "shasum": ""
1626
  },
1627
  "require": {
@@ -1633,7 +1633,7 @@
1633
  "type": "library",
1634
  "extra": {
1635
  "branch-alias": {
1636
- "dev-master": "1.17-dev"
1637
  },
1638
  "thanks": {
1639
  "name": "symfony/polyfill",
@@ -1670,20 +1670,34 @@
1670
  "polyfill",
1671
  "portable"
1672
  ],
1673
- "time": "2020-06-06T08:46:27+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1674
  },
1675
  {
1676
  "name": "symfony/yaml",
1677
- "version": "v3.4.42",
1678
  "source": {
1679
  "type": "git",
1680
  "url": "https://github.com/symfony/yaml.git",
1681
- "reference": "7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb"
1682
  },
1683
  "dist": {
1684
  "type": "zip",
1685
- "url": "https://api.github.com/repos/symfony/yaml/zipball/7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb",
1686
- "reference": "7233ac2bfdde24d672f5305f2b3f6b5d741ef8eb",
1687
  "shasum": ""
1688
  },
1689
  "require": {
@@ -1729,24 +1743,38 @@
1729
  ],
1730
  "description": "Symfony Yaml Component",
1731
  "homepage": "https://symfony.com",
1732
- "time": "2020-05-11T07:51:54+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1733
  },
1734
  {
1735
  "name": "webmozart/assert",
1736
- "version": "1.9.0",
1737
  "source": {
1738
  "type": "git",
1739
  "url": "https://github.com/webmozart/assert.git",
1740
- "reference": "9dc4f203e36f2b486149058bade43c851dd97451"
1741
  },
1742
  "dist": {
1743
  "type": "zip",
1744
- "url": "https://api.github.com/repos/webmozart/assert/zipball/9dc4f203e36f2b486149058bade43c851dd97451",
1745
- "reference": "9dc4f203e36f2b486149058bade43c851dd97451",
1746
  "shasum": ""
1747
  },
1748
  "require": {
1749
- "php": "^5.3.3 || ^7.0",
1750
  "symfony/polyfill-ctype": "^1.8"
1751
  },
1752
  "conflict": {
@@ -1778,7 +1806,7 @@
1778
  "check",
1779
  "validate"
1780
  ],
1781
- "time": "2020-06-16T10:16:42+00:00"
1782
  },
1783
  {
1784
  "name": "wp-coding-standards/wpcs",
@@ -1833,8 +1861,9 @@
1833
  "prefer-stable": false,
1834
  "prefer-lowest": false,
1835
  "platform": {
1836
- "ext-json": "^1.2",
1837
  "ext-curl": "*"
1838
  },
1839
- "platform-dev": []
 
1840
  }
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "ece20f9898d02cdae92704d6c6e7d380",
8
  "packages": [
9
  {
10
  "name": "firebase/php-jwt",
104
  },
105
  {
106
  "name": "brain/monkey",
107
+ "version": "2.5.0",
108
  "source": {
109
  "type": "git",
110
  "url": "https://github.com/Brain-WP/BrainMonkey.git",
111
+ "reference": "a11f7a0e703ff92a91b67bbf9ea384ab0ec2c863"
112
  },
113
  "dist": {
114
  "type": "zip",
115
+ "url": "https://api.github.com/repos/Brain-WP/BrainMonkey/zipball/a11f7a0e703ff92a91b67bbf9ea384ab0ec2c863",
116
+ "reference": "a11f7a0e703ff92a91b67bbf9ea384ab0ec2c863",
117
  "shasum": ""
118
  },
119
  "require": {
122
  "php": ">=5.6.0"
123
  },
124
  "require-dev": {
125
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || ^0.7",
126
  "phpcompatibility/php-compatibility": "^9.3.0",
127
+ "phpunit/phpunit": "^5.7.9 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
128
  },
129
  "type": "library",
130
  "extra": {
166
  "test",
167
  "testing"
168
  ],
169
+ "time": "2020-10-05T08:24:45+00:00"
170
  },
171
  {
172
  "name": "dealerdirect/phpcodesniffer-composer-installer",
290
  },
291
  {
292
  "name": "hamcrest/hamcrest-php",
293
+ "version": "v2.0.1",
294
  "source": {
295
  "type": "git",
296
  "url": "https://github.com/hamcrest/hamcrest-php.git",
297
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3"
298
  },
299
  "dist": {
300
  "type": "zip",
301
+ "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
302
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
303
  "shasum": ""
304
  },
305
  "require": {
306
+ "php": "^5.3|^7.0|^8.0"
307
  },
308
  "replace": {
309
  "cordoval/hamcrest-php": "*",
311
  "kodova/hamcrest-php": "*"
312
  },
313
  "require-dev": {
314
+ "phpunit/php-file-iterator": "^1.4 || ^2.0",
315
+ "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
 
316
  },
317
  "type": "library",
318
  "extra": {
319
  "branch-alias": {
320
+ "dev-master": "2.1-dev"
321
  }
322
  },
323
  "autoload": {
327
  },
328
  "notification-url": "https://packagist.org/downloads/",
329
  "license": [
330
+ "BSD-3-Clause"
331
  ],
332
  "description": "This is the PHP port of Hamcrest Matchers",
333
  "keywords": [
334
  "test"
335
  ],
336
+ "time": "2020-07-09T08:09:16+00:00"
337
  },
338
  {
339
  "name": "mockery/mockery",
340
+ "version": "1.3.3",
341
  "source": {
342
  "type": "git",
343
  "url": "https://github.com/mockery/mockery.git",
344
+ "reference": "60fa2f67f6e4d3634bb4a45ff3171fa52215800d"
345
  },
346
  "dist": {
347
  "type": "zip",
348
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/60fa2f67f6e4d3634bb4a45ff3171fa52215800d",
349
+ "reference": "60fa2f67f6e4d3634bb4a45ff3171fa52215800d",
350
  "shasum": ""
351
  },
352
  "require": {
353
+ "hamcrest/hamcrest-php": "^2.0.1",
354
  "lib-pcre": ">=7.0",
355
  "php": ">=5.6.0"
356
  },
357
  "require-dev": {
358
+ "phpunit/phpunit": "^5.7.10|^6.5|^7.5|^8.5|^9.3"
359
  },
360
  "type": "library",
361
  "extra": {
398
  "test double",
399
  "testing"
400
  ],
401
+ "time": "2020-08-11T18:10:21+00:00"
402
  },
403
  {
404
  "name": "myclabs/deep-copy",
901
  "keywords": [
902
  "tokenizer"
903
  ],
904
+ "abandoned": true,
905
  "time": "2017-12-04T08:55:13+00:00"
906
  },
907
  {
1561
  },
1562
  {
1563
  "name": "squizlabs/php_codesniffer",
1564
+ "version": "3.5.6",
1565
  "source": {
1566
  "type": "git",
1567
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
1568
+ "reference": "e97627871a7eab2f70e59166072a6b767d5834e0"
1569
  },
1570
  "dist": {
1571
  "type": "zip",
1572
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/e97627871a7eab2f70e59166072a6b767d5834e0",
1573
+ "reference": "e97627871a7eab2f70e59166072a6b767d5834e0",
1574
  "shasum": ""
1575
  },
1576
  "require": {
1608
  "phpcs",
1609
  "standards"
1610
  ],
1611
+ "time": "2020-08-10T04:50:15+00:00"
1612
  },
1613
  {
1614
  "name": "symfony/polyfill-ctype",
1615
+ "version": "v1.18.1",
1616
  "source": {
1617
  "type": "git",
1618
  "url": "https://github.com/symfony/polyfill-ctype.git",
1619
+ "reference": "1c302646f6efc070cd46856e600e5e0684d6b454"
1620
  },
1621
  "dist": {
1622
  "type": "zip",
1623
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454",
1624
+ "reference": "1c302646f6efc070cd46856e600e5e0684d6b454",
1625
  "shasum": ""
1626
  },
1627
  "require": {
1633
  "type": "library",
1634
  "extra": {
1635
  "branch-alias": {
1636
+ "dev-master": "1.18-dev"
1637
  },
1638
  "thanks": {
1639
  "name": "symfony/polyfill",
1670
  "polyfill",
1671
  "portable"
1672
  ],
1673
+ "funding": [
1674
+ {
1675
+ "url": "https://symfony.com/sponsor",
1676
+ "type": "custom"
1677
+ },
1678
+ {
1679
+ "url": "https://github.com/fabpot",
1680
+ "type": "github"
1681
+ },
1682
+ {
1683
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1684
+ "type": "tidelift"
1685
+ }
1686
+ ],
1687
+ "time": "2020-07-14T12:35:20+00:00"
1688
  },
1689
  {
1690
  "name": "symfony/yaml",
1691
+ "version": "v3.4.45",
1692
  "source": {
1693
  "type": "git",
1694
  "url": "https://github.com/symfony/yaml.git",
1695
+ "reference": "ec3c2ac4d881a4684c1f0317d2107f1a4152bad9"
1696
  },
1697
  "dist": {
1698
  "type": "zip",
1699
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/ec3c2ac4d881a4684c1f0317d2107f1a4152bad9",
1700
+ "reference": "ec3c2ac4d881a4684c1f0317d2107f1a4152bad9",
1701
  "shasum": ""
1702
  },
1703
  "require": {
1743
  ],
1744
  "description": "Symfony Yaml Component",
1745
  "homepage": "https://symfony.com",
1746
+ "funding": [
1747
+ {
1748
+ "url": "https://symfony.com/sponsor",
1749
+ "type": "custom"
1750
+ },
1751
+ {
1752
+ "url": "https://github.com/fabpot",
1753
+ "type": "github"
1754
+ },
1755
+ {
1756
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1757
+ "type": "tidelift"
1758
+ }
1759
+ ],
1760
+ "time": "2020-09-18T15:58:55+00:00"
1761
  },
1762
  {
1763
  "name": "webmozart/assert",
1764
+ "version": "1.9.1",
1765
  "source": {
1766
  "type": "git",
1767
  "url": "https://github.com/webmozart/assert.git",
1768
+ "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
1769
  },
1770
  "dist": {
1771
  "type": "zip",
1772
+ "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
1773
+ "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
1774
  "shasum": ""
1775
  },
1776
  "require": {
1777
+ "php": "^5.3.3 || ^7.0 || ^8.0",
1778
  "symfony/polyfill-ctype": "^1.8"
1779
  },
1780
  "conflict": {
1806
  "check",
1807
  "validate"
1808
  ],
1809
+ "time": "2020-07-08T17:02:28+00:00"
1810
  },
1811
  {
1812
  "name": "wp-coding-standards/wpcs",
1861
  "prefer-stable": false,
1862
  "prefer-lowest": false,
1863
  "platform": {
1864
+ "ext-json": "*",
1865
  "ext-curl": "*"
1866
  },
1867
+ "platform-dev": [],
1868
+ "plugin-api-version": "1.1.0"
1869
  }
config.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
 
 
3
  define('LC_RESOURCES_URL', 'https://www.livechat.com/wp-resources-integration/');
4
  define('LC_APP_URL_PATTERN', 'https://connect.livechatinc.com/%s/wordpress');
5
  define('LC_API_URL_PATTERN', 'https://%s.livechatinc.com');
1
  <?php
2
 
3
+ define('PLUGIN_SLUG', 'wp-live-chat-software-for-wordpress');
4
  define('LC_RESOURCES_URL', 'https://www.livechat.com/wp-resources-integration/');
5
  define('LC_APP_URL_PATTERN', 'https://connect.livechatinc.com/%s/wordpress');
6
  define('LC_API_URL_PATTERN', 'https://%s.livechatinc.com');
docker-start.sh DELETED
@@ -1,19 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker-compose down --volumes
4
-
5
- docker-compose up -d
6
-
7
- while ! docker logs -t --tail 1000 wordpress 2>&1 | grep -i "apache2 -D FOREGROUND"
8
- do
9
- sleep 1
10
- echo "Installing Wordpress..."
11
- done
12
-
13
- echo "Wordpress installed!"
14
-
15
- docker exec -it wordpress /bin/bash -c "chown -R www-data:www-data /var/www/html; chmod 777 /var/www/html/wp-content/plugins /var/www/html/wp-content/"
16
-
17
- setupWordpressCmd="wp core install --url=\"localhost:8081\" --title=\"LiveChat\" --admin_user=\"admin\" --admin_password=\"admin\" --admin_email=\"admin@lc.com\""
18
-
19
- docker-compose run --rm cli /bin/bash -c "$setupWordpressCmd"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.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.4.0
9
  Text Domain: wp-live-chat-software-for-wordpress
10
  Domain Path: /languages
11
  */
plugin_files/LiveChatAdmin.class.php CHANGED
@@ -71,10 +71,23 @@ final class LiveChatAdmin extends LiveChat {
71
  add_action( 'current_screen', array( $this, 'show_deactivation_feedback_form' ) );
72
  add_action( 'activated_plugin', array( $this, 'plugin_activated_action_handler' ) );
73
 
 
 
74
  $this->register_admin_notices();
75
  $this->register_ajax_actions();
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
78
  /**
79
  * Returns instance of LiveChat class (singleton pattern).
80
  *
71
  add_action( 'current_screen', array( $this, 'show_deactivation_feedback_form' ) );
72
  add_action( 'activated_plugin', array( $this, 'plugin_activated_action_handler' ) );
73
 
74
+ add_filter( 'auto_update_plugin', array( $this, 'auto_update' ), 10, 2 );
75
+
76
  $this->register_admin_notices();
77
  $this->register_ajax_actions();
78
  }
79
 
80
+ /**
81
+ * Enables auto-update for LC plugin.
82
+ *
83
+ * @param bool $update Default WP API response.
84
+ * @param object $item Plugin's slug.
85
+ * @return bool
86
+ */
87
+ public function auto_update( $update, $item ) {
88
+ return PLUGIN_SLUG === $item->slug ? true : $update;
89
+ }
90
+
91
  /**
92
  * Returns instance of LiveChat class (singleton pattern).
93
  *
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.3
5
  Requires PHP: 5.6
6
  Tested up to: 5.5
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.3 =
356
  * plugin compatibility bumped to WP in version 5.5
357
 
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.4.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.5
7
  Requires at least: 4.0
352
 
353
  == Changelog ==
354
 
355
+ = 4.4.0 =
356
+ * auto-update feature
357
+
358
  = 4.3.3 =
359
  * plugin compatibility bumped to WP in version 5.5
360
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit1a079a780d67e0e0c9ff93473f79b247::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitbcbacf9eefa0ad14e8a4b3a447c97b6a::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -60,7 +60,7 @@ class ClassLoader
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
- return call_user_func_array('array_merge', $this->prefixesPsr0);
64
  }
65
 
66
  return array();
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
+ return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
64
  }
65
 
66
  return array();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit1a079a780d67e0e0c9ff93473f79b247
6
  {
7
  private static $loader;
8
 
@@ -13,21 +13,24 @@ class ComposerAutoloaderInit1a079a780d67e0e0c9ff93473f79b247
13
  }
14
  }
15
 
 
 
 
16
  public static function getLoader()
17
  {
18
  if (null !== self::$loader) {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit1a079a780d67e0e0c9ff93473f79b247', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit1a079a780d67e0e0c9ff93473f79b247', '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\ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247::getInitializer($loader));
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 ComposerAutoloaderInitbcbacf9eefa0ad14e8a4b3a447c97b6a
6
  {
7
  private static $loader;
8
 
13
  }
14
  }
15
 
16
+ /**
17
+ * @return \Composer\Autoload\ClassLoader
18
+ */
19
  public static function getLoader()
20
  {
21
  if (null !== self::$loader) {
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitbcbacf9eefa0ad14e8a4b3a447c97b6a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitbcbacf9eefa0ad14e8a4b3a447c97b6a', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitbcbacf9eefa0ad14e8a4b3a447c97b6a::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'L' =>
@@ -72,9 +72,9 @@ class ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247
72
  public static function getInitializer(ClassLoader $loader)
73
  {
74
  return \Closure::bind(function () use ($loader) {
75
- $loader->prefixLengthsPsr4 = ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247::$prefixLengthsPsr4;
76
- $loader->prefixDirsPsr4 = ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247::$prefixDirsPsr4;
77
- $loader->classMap = ComposerStaticInit1a079a780d67e0e0c9ff93473f79b247::$classMap;
78
 
79
  }, null, ClassLoader::class);
80
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitbcbacf9eefa0ad14e8a4b3a447c97b6a
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 = ComposerStaticInitbcbacf9eefa0ad14e8a4b3a447c97b6a::$prefixLengthsPsr4;
76
+ $loader->prefixDirsPsr4 = ComposerStaticInitbcbacf9eefa0ad14e8a4b3a447c97b6a::$prefixDirsPsr4;
77
+ $loader->classMap = ComposerStaticInitbcbacf9eefa0ad14e8a4b3a447c97b6a::$classMap;
78
 
79
  }, null, ClassLoader::class);
80
  }