Version Description
- 2018-05-31 :- Medium Priority =
- Added "require consent before API load" to GDPR settings
Download this release
Release Info
Developer | perryrylance |
Plugin | WP Google Maps |
Version | 7.10.06 |
Comparing to | |
See all releases |
Code changes from version 7.10.05 to 7.10.06
- html/gdpr-compliance-settings.html.php +2 -2
- includes/class.gdpr-compliance.php +8 -4
- includes/class.google-maps-api-loader.php +2 -2
- js/wpgmaps.js +2 -2
- readme.txt +3 -0
- wpGoogleMaps.php +6 -2
html/gdpr-compliance-settings.html.php
CHANGED
@@ -43,7 +43,7 @@
|
|
43 |
<textarea name="wpgmza_gdpr_notice"></textarea>
|
44 |
</fieldset>
|
45 |
|
46 |
-
|
47 |
<label for="wpgmza_gdpr_require_consent_before_load">
|
48 |
<?php
|
49 |
_e('Require consent before load', 'wp-google-maps');
|
@@ -52,5 +52,5 @@
|
|
52 |
title="<?php _e('Check this box if you would like to prevent the map API from loading until the user gives consent to the notice above.', 'wp-google-maps'); ?>"/>
|
53 |
</label>
|
54 |
<input name="wpgmza_gdpr_require_consent_before_load" type="checkbox"/>
|
55 |
-
</fieldset
|
56 |
</div>
|
43 |
<textarea name="wpgmza_gdpr_notice"></textarea>
|
44 |
</fieldset>
|
45 |
|
46 |
+
<fieldset>
|
47 |
<label for="wpgmza_gdpr_require_consent_before_load">
|
48 |
<?php
|
49 |
_e('Require consent before load', 'wp-google-maps');
|
52 |
title="<?php _e('Check this box if you would like to prevent the map API from loading until the user gives consent to the notice above.', 'wp-google-maps'); ?>"/>
|
53 |
</label>
|
54 |
<input name="wpgmza_gdpr_require_consent_before_load" type="checkbox"/>
|
55 |
+
</fieldset>
|
56 |
</div>
|
includes/class.gdpr-compliance.php
CHANGED
@@ -21,6 +21,10 @@ class GDPRCompliance
|
|
21 |
$wpgmza_other_settings = array();
|
22 |
|
23 |
$wpgmza_other_settings = apply_filters('wpgmza_plugin_get_default_settings', $wpgmza_other_settings);
|
|
|
|
|
|
|
|
|
24 |
update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_other_settings);
|
25 |
}
|
26 |
}
|
@@ -30,15 +34,15 @@ class GDPRCompliance
|
|
30 |
return array_merge($settings, array(
|
31 |
'wpgmza_gdpr_enabled' => 1,
|
32 |
'wpgmza_gdpr_notice' => apply_filters('wpgmza_gdpr_notice',
|
33 |
-
__('I agree for my personal data
|
34 |
|
35 |
I agree for my personal data, provided via map API calls, to be processed by the API provider, for the purposes of geocoding (converting addresses to coordinates), reverse geocoding and generating directions.
|
36 |
|
37 |
-
WP Google Maps uses jQuery DataTables to display sortable, searchable tables, such as that seen in the Advanced Marker Listing and on the Map Edit Page. jQuery DataTables in certain circumstances uses a cookie to save and later recall the "state" of a given table - that is, the search term, sort column and order and current page. This data is help in local storage and retained until this is cleared manually. No libraries used by WP Google Maps transmit this information.
|
38 |
-
|
39 |
Some visual components of WP Google Maps use 3rd party libraries which are loaded over the network. At present the libraries are Google Maps, Open Street Map, jQuery DataTables and FontAwesome. When loading resources over a network, the 3rd party server will receive your IP address and User Agent string amongst other details. Please refer to the Privacy Policy of the respective libraries for details on how they use data and the process to exercise your rights under the GDPR regulations.
|
40 |
|
41 |
-
|
|
|
|
|
42 |
|
43 |
'wpgmza_gdpr_retention_purpose' => 'presenting the data you have submitted on the map.'
|
44 |
));
|
21 |
$wpgmza_other_settings = array();
|
22 |
|
23 |
$wpgmza_other_settings = apply_filters('wpgmza_plugin_get_default_settings', $wpgmza_other_settings);
|
24 |
+
|
25 |
+
// TODO: Remove this after performance enhancements permit
|
26 |
+
$wpgmza_other_settings['wpgmza_settings_marker_pull'] = '0';
|
27 |
+
|
28 |
update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_other_settings);
|
29 |
}
|
30 |
}
|
34 |
return array_merge($settings, array(
|
35 |
'wpgmza_gdpr_enabled' => 1,
|
36 |
'wpgmza_gdpr_notice' => apply_filters('wpgmza_gdpr_notice',
|
37 |
+
__('I agree for my personal data to be processed by {COMPANY_NAME}.
|
38 |
|
39 |
I agree for my personal data, provided via map API calls, to be processed by the API provider, for the purposes of geocoding (converting addresses to coordinates), reverse geocoding and generating directions.
|
40 |
|
|
|
|
|
41 |
Some visual components of WP Google Maps use 3rd party libraries which are loaded over the network. At present the libraries are Google Maps, Open Street Map, jQuery DataTables and FontAwesome. When loading resources over a network, the 3rd party server will receive your IP address and User Agent string amongst other details. Please refer to the Privacy Policy of the respective libraries for details on how they use data and the process to exercise your rights under the GDPR regulations.
|
42 |
|
43 |
+
WP Google Maps uses jQuery DataTables to display sortable, searchable tables, such as that seen in the Advanced Marker Listing and on the Map Edit Page. jQuery DataTables in certain circumstances uses a cookie to save and later recall the "state" of a given table - that is, the search term, sort column and order and current page. This data is help in local storage and retained until this is cleared manually. No libraries used by WP Google Maps transmit this information.
|
44 |
+
|
45 |
+
Where this notice is displayed in place of a map, agreeing to this notice will store a cookie recording your agreement so you are not prompted again.'), 'wp-google-maps'),
|
46 |
|
47 |
'wpgmza_gdpr_retention_purpose' => 'presenting the data you have submitted on the map.'
|
48 |
));
|
includes/class.google-maps-api-loader.php
CHANGED
@@ -193,13 +193,13 @@ class GoogleMapsAPILoader
|
|
193 |
return false;
|
194 |
}
|
195 |
|
196 |
-
|
197 |
{
|
198 |
$status->message = 'User consent not given';
|
199 |
$status->code = GoogleMapsAPILoader::USER_CONSENT_NOT_GIVEN;
|
200 |
|
201 |
return false;
|
202 |
-
}
|
203 |
|
204 |
if(!empty($settings['wpgmza_maps_engine']) && $settings['wpgmza_maps_engine'] == 'open-layers')
|
205 |
{
|
193 |
return false;
|
194 |
}
|
195 |
|
196 |
+
if(!empty($settings['wpgmza_gdpr_require_consent_before_load']) && !isset($_COOKIE['wpgmza-api-consent-given']))
|
197 |
{
|
198 |
$status->message = 'User consent not given';
|
199 |
$status->code = GoogleMapsAPILoader::USER_CONSENT_NOT_GIVEN;
|
200 |
|
201 |
return false;
|
202 |
+
}
|
203 |
|
204 |
if(!empty($settings['wpgmza_maps_engine']) && $settings['wpgmza_maps_engine'] == 'open-layers')
|
205 |
{
|
js/wpgmaps.js
CHANGED
@@ -54,7 +54,7 @@ function InitMap() {
|
|
54 |
|
55 |
var $ = jQuery;
|
56 |
|
57 |
-
|
58 |
{
|
59 |
$("#wpgmza_map, .wpgmza_map").each(function(index, el) {
|
60 |
$(el).append($(WPGMZA.api_consent_html));
|
@@ -67,7 +67,7 @@ function InitMap() {
|
|
67 |
});
|
68 |
|
69 |
return;
|
70 |
-
}
|
71 |
|
72 |
var myLatLng = {
|
73 |
lat: wpgmaps_localize[wpgmaps_mapid].map_start_lat,
|
54 |
|
55 |
var $ = jQuery;
|
56 |
|
57 |
+
if(WPGMZA.googleAPIStatus && WPGMZA.googleAPIStatus.code == "USER_CONSENT_NOT_GIVEN")
|
58 |
{
|
59 |
$("#wpgmza_map, .wpgmza_map").each(function(index, el) {
|
60 |
$(el).append($(WPGMZA.api_consent_html));
|
67 |
});
|
68 |
|
69 |
return;
|
70 |
+
}
|
71 |
|
72 |
var myLatLng = {
|
73 |
lat: wpgmaps_localize[wpgmaps_mapid].map_start_lat,
|
readme.txt
CHANGED
@@ -215,6 +215,9 @@ Please upgrade your version of WP Google Maps to version 6.0.27 as it includes m
|
|
215 |
|
216 |
== Changelog ==
|
217 |
|
|
|
|
|
|
|
218 |
= 7.10.05 - 2018-05-30 :- Low Priority =
|
219 |
* Fixed Using $this when not in object context when using older PHP version
|
220 |
* Fixed google sometimes not defined when selected engine is OpenLayers
|
215 |
|
216 |
== Changelog ==
|
217 |
|
218 |
+
= 7.10.06 - 2018-05-31 :- Medium Priority =
|
219 |
+
* Added "require consent before API load" to GDPR settings
|
220 |
+
|
221 |
= 7.10.05 - 2018-05-30 :- Low Priority =
|
222 |
* Fixed Using $this when not in object context when using older PHP version
|
223 |
* Fixed google sometimes not defined when selected engine is OpenLayers
|
wpGoogleMaps.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Google Maps
|
4 |
Plugin URI: https://www.wpgmaps.com
|
5 |
Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
|
6 |
-
Version: 7.10.
|
7 |
Author: WP Google Maps
|
8 |
Author URI: https://www.wpgmaps.com
|
9 |
Text Domain: wp-google-maps
|
@@ -11,9 +11,13 @@ Domain Path: /languages
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* 7.10.
|
|
|
|
|
|
|
15 |
* Fixed Using $this when not in object context when using older PHP version
|
16 |
* Fixed google sometimes not defined when selected engine is OpenLayers
|
|
|
17 |
*
|
18 |
* 7.10.04 - 2018-05-30 :- Medium Priority
|
19 |
* Fixed geocode response coordinates not interpreted properly
|
3 |
Plugin Name: WP Google Maps
|
4 |
Plugin URI: https://www.wpgmaps.com
|
5 |
Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
|
6 |
+
Version: 7.10.06
|
7 |
Author: WP Google Maps
|
8 |
Author URI: https://www.wpgmaps.com
|
9 |
Text Domain: wp-google-maps
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* 7.10.06 - 2018-05-31 :- Medium Priority
|
15 |
+
* Added "require consent before API load" to GDPR settings
|
16 |
+
*
|
17 |
+
* 7.10.05 - 2018-05-30 :- Low Priority
|
18 |
* Fixed Using $this when not in object context when using older PHP version
|
19 |
* Fixed google sometimes not defined when selected engine is OpenLayers
|
20 |
+
* Fixed can't edit GDPR fields
|
21 |
*
|
22 |
* 7.10.04 - 2018-05-30 :- Medium Priority
|
23 |
* Fixed geocode response coordinates not interpreted properly
|