GDPR Cookie Compliance - Version 4.1.1

Version Description

Download this release

Release Info

Developer MooveAgency
Plugin Icon 128x128 GDPR Cookie Compliance
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

controllers/class-moove-gdpr-license-manager.php CHANGED
@@ -38,41 +38,25 @@ class Moove_GDPR_License_Manager {
38
  $license_token = $content->get_license_token();
39
  $curl = curl_init();
40
  $request_url = MOOVE_SHOP_URL . "/wp-json/license-manager/v1/validate_licence/?license_key=$license_key&license_token=$license_token&license_type=$type&license_action=$action";
41
-
42
- curl_setopt_array(
43
- $curl,
44
- array(
45
- CURLOPT_URL => $request_url,
46
- CURLOPT_RETURNTRANSFER => true,
47
- CURLOPT_ENCODING => '',
48
- CURLOPT_MAXREDIRS => 10,
49
- CURLOPT_TIMEOUT => 30,
50
- CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
51
- CURLOPT_CUSTOMREQUEST => 'GET',
52
- CURLOPT_HTTPHEADER => array(
53
- 'Accept: application/json',
54
- 'Content-Type: application/json',
55
- 'Content-length: 0',
56
- ),
57
- )
58
  );
59
 
60
- $response = curl_exec( $curl );
61
-
62
- $err = curl_error( $curl );
63
-
64
- curl_close( $curl );
65
-
66
- if ( $err || ! json_decode( $response, true ) ) {
67
- $error = $err ? $err : $response;
68
  return array(
69
  'valid' => false,
70
  'message' => array(
71
- 'Our Activation Server appears to be temporarily unavailable, please try again later or <a href="mailto:plugins@mooveagency.com" class="' . $type . '_admin_link">contact support</a>.',
72
  ),
73
  );
74
  } else {
75
- return json_decode( $response, true );
76
  }
77
  }
78
 
38
  $license_token = $content->get_license_token();
39
  $curl = curl_init();
40
  $request_url = MOOVE_SHOP_URL . "/wp-json/license-manager/v1/validate_licence/?license_key=$license_key&license_token=$license_token&license_type=$type&license_action=$action";
41
+
42
+ $response = wp_remote_get(
43
+ $request_url,
44
+ array(
45
+ 'timeout' => 40,
46
+ 'httpversion' => '1.1',
47
+ )
 
 
 
 
 
 
 
 
 
 
48
  );
49
 
50
+ if ( ! isset( $response['body'] ) || ! json_decode( $response['body'], true ) ) {
51
+ $error = $response;
 
 
 
 
 
 
52
  return array(
53
  'valid' => false,
54
  'message' => array(
55
+ 'Our Activation Server appears to be temporarily unavailable, please try again later or <a href="mailto:plugins@mooveagency.com" class="error_admin_link">contact support</a>.',
56
  ),
57
  );
58
  } else {
59
+ return json_decode( $response['body'], true );
60
  }
61
  }
62
 
moove-gdpr.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: GDPR Cookie Compliance
5
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
6
  * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, PIPEDA, CCPA, AAP, LGPD and others.
7
- * Version: 4.1.0
8
  * Author: Moove Agency
9
  * Domain Path: /languages
10
  * Author URI: https://www.mooveagency.com
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  exit;
19
  } // Exit if accessed directly
20
 
21
- define( 'MOOVE_GDPR_VERSION', '4.1.0' );
22
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
23
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
24
  endif;
4
  * Plugin Name: GDPR Cookie Compliance
5
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
6
  * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, PIPEDA, CCPA, AAP, LGPD and others.
7
+ * Version: 4.1.1
8
  * Author: Moove Agency
9
  * Domain Path: /languages
10
  * Author URI: https://www.mooveagency.com
18
  exit;
19
  } // Exit if accessed directly
20
 
21
+ define( 'MOOVE_GDPR_VERSION', '4.1.1' );
22
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
23
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
24
  endif;
readme.txt CHANGED
@@ -203,6 +203,9 @@ The Brazilian General Data Protection Law (“Lei Geral de Proteção de Dados
203
  32. GDPR Cookie Compliance - Admin - Language Specific Scripts [Premium]
204
 
205
  == Changelog ==
 
 
 
206
  = 4.1.0: December 23th, 2019
207
  * Plugin updater removed
208
  * Improved admin enqueue scripts
203
  32. GDPR Cookie Compliance - Admin - Language Specific Scripts [Premium]
204
 
205
  == Changelog ==
206
+ = 4.1.1: December 23th, 2019
207
+ * Licence manager curl replaced to wp_remote_get
208
+
209
  = 4.1.0: December 23th, 2019
210
  * Plugin updater removed
211
  * Improved admin enqueue scripts