Version Description
Release date: February 26th, 2018 * Fixed a bug with WordPress comments * Fixed a bug with default checkbox texts
Download this release
Release Info
Developer | donnyoexman |
Plugin | WP GDPR Compliance |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- Includes/Extensions/WP.php +2 -10
- Includes/Integrations.php +4 -5
- readme.txt +6 -1
- wp-gdpr-compliance.php +1 -1
Includes/Extensions/WP.php
CHANGED
@@ -32,21 +32,13 @@ class WP {
|
|
32 |
return $field . $submitField;
|
33 |
}
|
34 |
|
35 |
-
|
36 |
-
* @param array $post
|
37 |
-
* @return array
|
38 |
-
*/
|
39 |
-
public function checkPost($post = array()) {
|
40 |
if (!isset($_POST['wpgdprc'])) {
|
41 |
wp_die(
|
42 |
'<p>' . sprintf(__('<strong>ERROR</strong>: %s', WP_GDPR_C_SLUG), Integrations::getErrorMessage(self::ID)) . '</p>',
|
43 |
__('Comment Submission Failure'),
|
44 |
-
array(
|
45 |
-
'response' => $post,
|
46 |
-
'back_link' => true
|
47 |
-
)
|
48 |
);
|
49 |
}
|
50 |
-
return $post;
|
51 |
}
|
52 |
}
|
32 |
return $field . $submitField;
|
33 |
}
|
34 |
|
35 |
+
public function checkPost() {
|
|
|
|
|
|
|
|
|
36 |
if (!isset($_POST['wpgdprc'])) {
|
37 |
wp_die(
|
38 |
'<p>' . sprintf(__('<strong>ERROR</strong>: %s', WP_GDPR_C_SLUG), Integrations::getErrorMessage(self::ID)) . '</p>',
|
39 |
__('Comment Submission Failure'),
|
40 |
+
array('back_link' => true)
|
|
|
|
|
|
|
41 |
);
|
42 |
}
|
|
|
43 |
}
|
44 |
}
|
Includes/Integrations.php
CHANGED
@@ -34,7 +34,7 @@ class Integrations {
|
|
34 |
switch ($plugin['id']) {
|
35 |
case WP::ID :
|
36 |
add_filter('comment_form_submit_field', array(WP::getInstance(), 'addField'));
|
37 |
-
|
38 |
break;
|
39 |
case CF7::ID :
|
40 |
add_action('update_option_' . WP_GDPR_C_PREFIX . '_integrations_' . CF7::ID . '_forms', array(CF7::getInstance(), 'processIntegration'));
|
@@ -141,7 +141,7 @@ class Integrations {
|
|
141 |
default :
|
142 |
$optionNameText = WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_text';
|
143 |
$optionNameErrorMessage = WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_error_message';
|
144 |
-
$text = self::getCheckboxText($plugin
|
145 |
$errorMessage = self::getErrorMessage($plugin);
|
146 |
$output .= '<ul class="wpgdprc-checklist-options">';
|
147 |
$output .= '<li>';
|
@@ -162,12 +162,11 @@ class Integrations {
|
|
162 |
|
163 |
/**
|
164 |
* @param string $plugin
|
165 |
-
* @param bool $return_default
|
166 |
* @return string
|
167 |
*/
|
168 |
-
public static function getCheckboxText($plugin = ''
|
169 |
$option = (!empty($plugin)) ? get_option(WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_text') : '';
|
170 |
-
if (empty($option)
|
171 |
return __('By using this form you agree with the storage and handling of your data by this website.', WP_GDPR_C_SLUG);
|
172 |
}
|
173 |
return esc_html($option);
|
34 |
switch ($plugin['id']) {
|
35 |
case WP::ID :
|
36 |
add_filter('comment_form_submit_field', array(WP::getInstance(), 'addField'));
|
37 |
+
add_action('pre_comment_on_post', array(WP::getInstance(), 'checkPost'));
|
38 |
break;
|
39 |
case CF7::ID :
|
40 |
add_action('update_option_' . WP_GDPR_C_PREFIX . '_integrations_' . CF7::ID . '_forms', array(CF7::getInstance(), 'processIntegration'));
|
141 |
default :
|
142 |
$optionNameText = WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_text';
|
143 |
$optionNameErrorMessage = WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_error_message';
|
144 |
+
$text = self::getCheckboxText($plugin);
|
145 |
$errorMessage = self::getErrorMessage($plugin);
|
146 |
$output .= '<ul class="wpgdprc-checklist-options">';
|
147 |
$output .= '<li>';
|
162 |
|
163 |
/**
|
164 |
* @param string $plugin
|
|
|
165 |
* @return string
|
166 |
*/
|
167 |
+
public static function getCheckboxText($plugin = '') {
|
168 |
$option = (!empty($plugin)) ? get_option(WP_GDPR_C_PREFIX . '_integrations_' . $plugin . '_text') : '';
|
169 |
+
if (empty($option)) {
|
170 |
return __('By using this form you agree with the storage and handling of your data by this website.', WP_GDPR_C_SLUG);
|
171 |
}
|
172 |
return esc_html($option);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protec
|
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 4.9.4
|
6 |
Requires PHP: 5.2.4
|
7 |
-
Stable tag: 1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -33,6 +33,11 @@ You'll find answers to many of your questions on [wpgdprc.com](https://www.wpgdp
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
= 1.2 =
|
37 |
*Release date: February 23rd, 2018*
|
38 |
* Limit data shared with WordPress when updating the core.
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 4.9.4
|
6 |
Requires PHP: 5.2.4
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 1.2.1 =
|
37 |
+
*Release date: February 26th, 2018*
|
38 |
+
* Fixed a bug with WordPress comments
|
39 |
+
* Fixed a bug with default checkbox texts
|
40 |
+
|
41 |
= 1.2 =
|
42 |
*Release date: February 23rd, 2018*
|
43 |
* Limit data shared with WordPress when updating the core.
|
wp-gdpr-compliance.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: WP GDPR Compliance
|
5 |
Plugin URI: https://www.wpgdprc.com/
|
6 |
Description: This plugin assists website and webshop owners to comply with European privacy regulations (known as GDPR). By May 24th, 2018 your website or shop has to comply to avoid large fines.
|
7 |
-
Version: 1.2
|
8 |
Author: Van Ons
|
9 |
Author URI: https://www.van-ons.nl/
|
10 |
License: GPL2
|
4 |
Plugin Name: WP GDPR Compliance
|
5 |
Plugin URI: https://www.wpgdprc.com/
|
6 |
Description: This plugin assists website and webshop owners to comply with European privacy regulations (known as GDPR). By May 24th, 2018 your website or shop has to comply to avoid large fines.
|
7 |
+
Version: 1.2.1
|
8 |
Author: Van Ons
|
9 |
Author URI: https://www.van-ons.nl/
|
10 |
License: GPL2
|