Tidio Live Chat - Version 6.0.2

Version Description

  • Fix the missing User-agent header that prevents false-positive messages with "Rest API disabled" on some environments
Download this release

Release Info

Developer kkopaczyktidio
Plugin Icon 128x128 Tidio Live Chat
Version 6.0.2
Comparing to
See all releases

Code changes from version 6.0.1 to 6.0.2

readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: free live chat, live chat, chat, chatbot, livechat, tidio, widget, zendesk
4
  Requires at least: 4.7
5
  Tested up to: 6.1
6
  Requires PHP: 7.2
7
- Stable tag: 6.0.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -198,6 +198,10 @@ Currently, Tidio is available in English and French. Other languages are in deve
198
 
199
  == Changelog ==
200
 
 
 
 
 
201
  = 6.0.1 =
202
 
203
  - Fix the plugin reintegration process
4
  Requires at least: 4.7
5
  Tested up to: 6.1
6
  Requires PHP: 7.2
7
+ Stable tag: 6.0.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
198
 
199
  == Changelog ==
200
 
201
+ = 6.0.2 =
202
+
203
+ - Fix the missing User-agent header that prevents false-positive messages with "Rest API disabled" on some environments
204
+
205
  = 6.0.1 =
206
 
207
  - Fix the plugin reintegration process
src/Http/Client/CurlHttpClient.php CHANGED
@@ -53,6 +53,7 @@ class CurlHttpClient implements HttpClient
53
  curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
54
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
55
  curl_setopt($ch, CURLOPT_URL, $url);
 
56
 
57
  $response = curl_exec($ch);
58
  $responseInfo = curl_getinfo($ch);
@@ -76,6 +77,7 @@ class CurlHttpClient implements HttpClient
76
  curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
77
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
78
  curl_setopt($ch, CURLOPT_URL, $url);
 
79
 
80
  $response = curl_exec($ch);
81
  $responseInfo = curl_getinfo($ch);
53
  curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
54
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
55
  curl_setopt($ch, CURLOPT_URL, $url);
56
+ curl_setopt($ch, CURLOPT_USERAGENT, 'Tidio WordPress plugin');
57
 
58
  $response = curl_exec($ch);
59
  $responseInfo = curl_getinfo($ch);
77
  curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
78
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
79
  curl_setopt($ch, CURLOPT_URL, $url);
80
+ curl_setopt($ch, CURLOPT_USERAGENT, 'Tidio WordPress plugin');
81
 
82
  $response = curl_exec($ch);
83
  $responseInfo = curl_getinfo($ch);
src/Http/Client/FileGetContentsHttpClient.php CHANGED
@@ -31,7 +31,10 @@ class FileGetContentsHttpClient implements HttpClient
31
  {
32
  $this->apiUrl = $apiUrl;
33
  $this->headers = array_merge(
34
- ['Accept: application/json'],
 
 
 
35
  $additionalHeaders
36
  );
37
  }
31
  {
32
  $this->apiUrl = $apiUrl;
33
  $this->headers = array_merge(
34
+ [
35
+ 'Accept: application/json',
36
+ 'User-Agent: Tidio WordPress plugin'
37
+ ],
38
  $additionalHeaders
39
  );
40
  }
tidio-elements.php CHANGED
@@ -8,7 +8,7 @@ if (!defined('WPINC')) {
8
  * Plugin Name: Tidio Chat
9
  * Plugin URI: http://www.tidio.com
10
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
11
- * Version: 6.0.1
12
  * Author: Tidio Ltd.
13
  * Author URI: http://www.tidio.com
14
  * Text Domain: tidio-live-chat
@@ -16,7 +16,7 @@ if (!defined('WPINC')) {
16
  * License: GPL2
17
  */
18
 
19
- define('TIDIOCHAT_VERSION', '6.0.1');
20
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory() . '/tidio_affiliate_ref_id.txt');
21
 
22
  require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
8
  * Plugin Name: Tidio Chat
9
  * Plugin URI: http://www.tidio.com
10
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
11
+ * Version: 6.0.2
12
  * Author: Tidio Ltd.
13
  * Author URI: http://www.tidio.com
14
  * Text Domain: tidio-live-chat
16
  * License: GPL2
17
  */
18
 
19
+ define('TIDIOCHAT_VERSION', '6.0.2');
20
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory() . '/tidio_affiliate_ref_id.txt');
21
 
22
  require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => 'e533be6eddd79a7c01f79b541c7207aacec58ef9',
34
  'name' => '__root__',
35
  ),
36
  'versions' =>
@@ -42,7 +42,7 @@ private static $installed = array (
42
  'aliases' =>
43
  array (
44
  ),
45
- 'reference' => 'e533be6eddd79a7c01f79b541c7207aacec58ef9',
46
  ),
47
  ),
48
  );
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'b9082646d1ebff969b31c013c6f0a625637e9eae',
34
  'name' => '__root__',
35
  ),
36
  'versions' =>
42
  'aliases' =>
43
  array (
44
  ),
45
+ 'reference' => 'b9082646d1ebff969b31c013c6f0a625637e9eae',
46
  ),
47
  ),
48
  );
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'e533be6eddd79a7c01f79b541c7207aacec58ef9',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
@@ -18,7 +18,7 @@
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => 'e533be6eddd79a7c01f79b541c7207aacec58ef9',
22
  ),
23
  ),
24
  );
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'b9082646d1ebff969b31c013c6f0a625637e9eae',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => 'b9082646d1ebff969b31c013c6f0a625637e9eae',
22
  ),
23
  ),
24
  );