Version Description
Release date: 18th October 2021 * Fixed plugin overview action settings link. * Fixed issue with Ultimate Member plugin
Download this release
Release Info
Developer | merlijnvanlent |
Plugin | WP GDPR Compliance |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- Integrations/Plugins/AbstractPlugin.php +9 -3
- WordPress/Admin.php +1 -1
- readme.txt +10 -5
- wp-gdpr-compliance.php +2 -2
Integrations/Plugins/AbstractPlugin.php
CHANGED
@@ -27,6 +27,15 @@ abstract class AbstractPlugin extends AbstractIntegration {
|
|
27 |
return;
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
$this->setValues( Settings::getForms( $this->getID(), [] ), Integration::KEY_FORMS );
|
31 |
foreach ( Integration::defaultTexts() as $name => $default ) {
|
32 |
if ( empty( $this->getValues( $name ) ) ) {
|
@@ -40,10 +49,7 @@ abstract class AbstractPlugin extends AbstractIntegration {
|
|
40 |
$values[ $id ] = !isset($stored[ $id ]) || $stored[ $id ] === false ? $default : $stored[ $id ];
|
41 |
$this->setValues( $values, $name );
|
42 |
}
|
43 |
-
|
44 |
}
|
45 |
-
|
46 |
-
$this->initHooks();
|
47 |
}
|
48 |
|
49 |
/**
|
27 |
return;
|
28 |
}
|
29 |
|
30 |
+
add_action('init', [$this, 'setupValues'], 1);
|
31 |
+
|
32 |
+
$this->initHooks();
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Set all values which are needed from the database.
|
37 |
+
*/
|
38 |
+
public function setupValues() {
|
39 |
$this->setValues( Settings::getForms( $this->getID(), [] ), Integration::KEY_FORMS );
|
40 |
foreach ( Integration::defaultTexts() as $name => $default ) {
|
41 |
if ( empty( $this->getValues( $name ) ) ) {
|
49 |
$values[ $id ] = !isset($stored[ $id ]) || $stored[ $id ] === false ? $default : $stored[ $id ];
|
50 |
$this->setValues( $values, $name );
|
51 |
}
|
|
|
52 |
}
|
|
|
|
|
53 |
}
|
54 |
|
55 |
/**
|
WordPress/Admin.php
CHANGED
@@ -92,7 +92,7 @@ class Admin {
|
|
92 |
*/
|
93 |
public static function settingsLink( $list = [] ) {
|
94 |
$new = [
|
95 |
-
'settings' => Elements::getLink(PageSettings::getPageUrl(), _x('Settings', 'admin', 'wp-gdpr-compliance'), [ 'aria-label' => sprintf(_x('%1s Settings', 'admin', 'wp-gdpr-compliance'), Config::pluginName()) ]),
|
96 |
];
|
97 |
return $new + $list;
|
98 |
}
|
92 |
*/
|
93 |
public static function settingsLink( $list = [] ) {
|
94 |
$new = [
|
95 |
+
'settings' => Elements::getLink(Wizard::isCompleted() ? PageSettings::getPageUrl() : PageWizard::getPageUrl(), _x('Settings', 'admin', 'wp-gdpr-compliance'), [ 'aria-label' => sprintf(_x('%1s Settings', 'admin', 'wp-gdpr-compliance'), Config::pluginName()) ]),
|
96 |
];
|
97 |
return $new + $list;
|
98 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protec
|
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,13 +41,18 @@ You'll find answers to many of your questions on [https://www.wpgdprc.com/faq/](
|
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
44 |
-
1.
|
45 |
-
2.
|
46 |
-
3.
|
47 |
-
4.
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
|
|
51 |
= 2.0 =
|
52 |
*Release date: 18th October 2021*
|
53 |
* Ground up rewrite of all core features.
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 2.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
44 |
+
1. Ask your visitors for permission to enable certain scripts for tracking or advertising purposes.
|
45 |
+
2. Control the link to your privacy policy, activate the request user data page and more.
|
46 |
+
3. Automatically add GDPR checkboxes to some of your favourite plugins.
|
47 |
+
4. Overview of the view and delete requests by your site's visitors.
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 2.0.1 =
|
52 |
+
*Release date: 18th October 2021*
|
53 |
+
* Fixed plugin overview action settings link.
|
54 |
+
* Fixed issue with Ultimate Member plugin
|
55 |
+
|
56 |
= 2.0 =
|
57 |
*Release date: 18th October 2021*
|
58 |
* Ground up rewrite of all core features.
|
wp-gdpr-compliance.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: This plugin assists website and web shop 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.
|
6 |
* Author: Cookie Information
|
7 |
* Author URI: https://cookieinformation.com/
|
8 |
-
* Version: 2.0
|
9 |
* Text Domain: wp-gdpr-compliance
|
10 |
* Domain Path: /Resources/languages
|
11 |
* Requires at least: 5.3
|
@@ -32,7 +32,7 @@ spl_autoload_register(__NAMESPACE__ . '\\autoload');
|
|
32 |
define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
|
33 |
define('WPGDPRC_ROOT_FILE', __FILE__);
|
34 |
define('WPGDPRC_FILE', plugin_basename(__FILE__));
|
35 |
-
define('WPGDPRC_VERSION', '2.0');
|
36 |
define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
|
37 |
|
38 |
// register activation & deactivation hook to add/remove plugin specific database options
|
5 |
* Description: This plugin assists website and web shop 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.
|
6 |
* Author: Cookie Information
|
7 |
* Author URI: https://cookieinformation.com/
|
8 |
+
* Version: 2.0.1
|
9 |
* Text Domain: wp-gdpr-compliance
|
10 |
* Domain Path: /Resources/languages
|
11 |
* Requires at least: 5.3
|
32 |
define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
|
33 |
define('WPGDPRC_ROOT_FILE', __FILE__);
|
34 |
define('WPGDPRC_FILE', plugin_basename(__FILE__));
|
35 |
+
define('WPGDPRC_VERSION', '2.0.1');
|
36 |
define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
|
37 |
|
38 |
// register activation & deactivation hook to add/remove plugin specific database options
|