Version Description
Download this release
Release Info
Developer | MooveAgency |
Plugin | GDPR Cookie Compliance |
Version | 4.2.5 |
Comparing to | |
See all releases |
Code changes from version 4.2.4 to 4.2.5
class-moove-gdpr-actions.php
CHANGED
@@ -369,7 +369,8 @@ class Moove_GDPR_Actions {
|
|
369 |
$modal_options = get_option( $option_name );
|
370 |
$force_reload = apply_filters( 'gdpr_force_reload', false );
|
371 |
$force_reload = $force_reload ? 'true' : 'false';
|
372 |
-
|
|
|
373 |
|
374 |
// By using this filter, you can force the plugin to load the lity lightbox using PHP instead of JavaScript.
|
375 |
$load_lity = apply_filters( 'gdpr_enqueue_lity_nojs', true );
|
369 |
$modal_options = get_option( $option_name );
|
370 |
$force_reload = apply_filters( 'gdpr_force_reload', false );
|
371 |
$force_reload = $force_reload ? 'true' : 'false';
|
372 |
+
|
373 |
+
$geo_location_enabled = apply_filters( 'gdpr_cc_geolocation_status', 'false', $modal_options );
|
374 |
|
375 |
// By using this filter, you can force the plugin to load the lity lightbox using PHP instead of JavaScript.
|
376 |
$load_lity = apply_filters( 'gdpr_enqueue_lity_nojs', true );
|
controllers/class-moove-gdpr-controller.php
CHANGED
@@ -558,7 +558,7 @@ class Moove_GDPR_Controller {
|
|
558 |
foreach ( $cookies as $cookie ) {
|
559 |
$parts = explode( '=', $cookie );
|
560 |
$name = trim( $parts[0] );
|
561 |
-
if ( $name !== 'moove_gdpr_popup' ) :
|
562 |
setcookie( $name, '', time() - 1000 );
|
563 |
setcookie( $name, '', time() - 1000, '/' );
|
564 |
endif;
|
558 |
foreach ( $cookies as $cookie ) {
|
559 |
$parts = explode( '=', $cookie );
|
560 |
$name = trim( $parts[0] );
|
561 |
+
if ( $name && $name !== 'moove_gdpr_popup' ) :
|
562 |
setcookie( $name, '', time() - 1000 );
|
563 |
setcookie( $name, '', time() - 1000, '/' );
|
564 |
endif;
|
controllers/class-moove-gdpr-db-controller.php
CHANGED
@@ -46,6 +46,14 @@ class Moove_GDPR_DB_Controller {
|
|
46 |
PRIMARY KEY (id)
|
47 |
);"
|
48 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
endif;
|
50 |
}
|
51 |
|
46 |
PRIMARY KEY (id)
|
47 |
);"
|
48 |
);
|
49 |
+
$gdpr_default_content = new Moove_GDPR_Content();
|
50 |
+
$option_name = $gdpr_default_content->moove_gdpr_get_option_name();
|
51 |
+
$gdpr_options = get_option( $option_name );
|
52 |
+
if ( $gdpr_options && is_array( $gdpr_options ) ) :
|
53 |
+
foreach ( $gdpr_options as $go_key => $go_value ) :
|
54 |
+
gdpr_update_field( $go_key, $go_value );
|
55 |
+
endforeach;
|
56 |
+
endif;
|
57 |
endif;
|
58 |
}
|
59 |
|
controllers/class-moove-gdpr-license-manager.php
CHANGED
@@ -41,22 +41,36 @@ class Moove_GDPR_License_Manager {
|
|
41 |
|
42 |
$response = wp_remote_get(
|
43 |
$request_url,
|
44 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
}
|
62 |
|
41 |
|
42 |
$response = wp_remote_get(
|
43 |
$request_url,
|
44 |
+
array(
|
45 |
'timeout' => 40,
|
46 |
'httpversion' => '1.1',
|
47 |
)
|
48 |
);
|
49 |
|
50 |
+
if ( is_wp_error( $response ) || ! isset( $response['body'] ) || ! json_decode( $response['body'], true ) ) {
|
51 |
$error = $response;
|
52 |
return array(
|
53 |
'valid' => false,
|
54 |
+
'key' => $license_key,
|
55 |
'message' => array(
|
56 |
'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>.',
|
57 |
),
|
58 |
);
|
59 |
} else {
|
60 |
+
$body = wp_remote_retrieve_body( $response );
|
61 |
+
if ( $body ) :
|
62 |
+
return json_decode( $body, true );
|
63 |
+
else :
|
64 |
+
$error = $response;
|
65 |
+
return array(
|
66 |
+
'valid' => false,
|
67 |
+
'key' => $license_key,
|
68 |
+
'message' => array(
|
69 |
+
'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>.',
|
70 |
+
),
|
71 |
+
);
|
72 |
+
endif;
|
73 |
+
|
74 |
}
|
75 |
}
|
76 |
|
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.2.
|
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.2.
|
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.2.5
|
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.2.5' );
|
22 |
if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
|
23 |
define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
|
24 |
endif;
|
readme.txt
CHANGED
@@ -231,6 +231,11 @@ The Brazilian General Data Protection Law (“Lei Geral de Proteção de Dados
|
|
231 |
39. GDPR Cookie Compliance - Front-end - Cookie Shortcode [Premium]
|
232 |
|
233 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
234 |
= 4.2.4: June 24, 2020 =
|
235 |
* Improved GDPR custom table for get_option and update_option
|
236 |
|
231 |
39. GDPR Cookie Compliance - Front-end - Cookie Shortcode [Premium]
|
232 |
|
233 |
== Changelog ==
|
234 |
+
= 4.2.5: July 28, 2020 =
|
235 |
+
* Empty cookie name warning fixed
|
236 |
+
* Legacy option support fixed
|
237 |
+
* Licence manager error handling improved
|
238 |
+
|
239 |
= 4.2.4: June 24, 2020 =
|
240 |
* Improved GDPR custom table for get_option and update_option
|
241 |
|