WP GDPR Compliance - Version 1.5.1

Version Description

Release date: April 30th, 2019 * Bugfix: 'token' column not being added to access_request table for new users.

Download this release

Release Info

Developer Van Ons
Plugin Icon 128x128 WP GDPR Compliance
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.1

Files changed (3) hide show
  1. Includes/Helper.php +1 -0
  2. readme.txt +6 -2
  3. wp-gdpr-compliance.php +14 -14
Includes/Helper.php CHANGED
@@ -659,6 +659,7 @@ class Helper {
659
  `email_address` varchar(100) NOT NULL,
660
  `session_id` varchar(255) NOT NULL,
661
  `ip_address` varchar(100) NOT NULL,
 
662
  `expired` tinyint(1) DEFAULT '0' NOT NULL,
663
  `date_created` datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
664
  PRIMARY KEY (`ID`)
659
  `email_address` varchar(100) NOT NULL,
660
  `session_id` varchar(255) NOT NULL,
661
  `ip_address` varchar(100) NOT NULL,
662
+ `token` text NOT NULL,
663
  `expired` tinyint(1) DEFAULT '0' NOT NULL,
664
  `date_created` datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
665
  PRIMARY KEY (`ID`)
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: donnyoexman, jeffreyvisser, merijnmolenaar, michaelvt, van-ons
3
  Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protection, eu, avg, comments, woocommerce, wc, contact form 7, cf7
4
  Requires at least: 4.5
5
- Tested up to: 5.1
6
  Requires PHP: 5.3
7
- Stable tag: 1.5.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -44,6 +44,10 @@ You'll find answers to many of your questions on [https://www.wpgdprc.com/faq/](
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.5.0 =
48
  *Release date: March 13th, 2019*
49
  * Bugfix: JavaScript error when no active consents are added.
2
  Contributors: donnyoexman, jeffreyvisser, merijnmolenaar, michaelvt, van-ons
3
  Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protection, eu, avg, comments, woocommerce, wc, contact form 7, cf7
4
  Requires at least: 4.5
5
+ Tested up to: 5.1.1
6
  Requires PHP: 5.3
7
+ Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.5.1 =
48
+ *Release date: April 30th, 2019*
49
+ * Bugfix: 'token' column not being added to access_request table for new users.
50
+
51
  = 1.5.0 =
52
  *Release date: March 13th, 2019*
53
  * Bugfix: JavaScript error when no active consents are added.
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.5.0
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
@@ -271,7 +271,7 @@ class WPGDPRC {
271
 
272
  public static function handleDatabaseTables() {
273
  $dbVersion = get_option('wpgdprc_db_version', 0);
274
- if (version_compare($dbVersion, '1.6', '==')) {
275
  return;
276
  }
277
 
@@ -314,18 +314,6 @@ class WPGDPRC {
314
  update_option('wpgdprc_db_version', '1.2');
315
  }
316
 
317
- // Add column 'token' to 'Access Requests' table
318
- if (version_compare($dbVersion, '1.5', '<')) {
319
- if ($wpdb->get_var("SHOW TABLES LIKE '" . AccessRequest::getDatabaseTableName() . "'") === AccessRequest::getDatabaseTableName()) {
320
- if (!$wpdb->get_var("SHOW COLUMNS FROM " . AccessRequest::getDatabaseTableName() . " LIKE 'token'")) {
321
- $query = "ALTER TABLE `" . AccessRequest::getDatabaseTableName() . "`
322
- ADD column `token` text NOT NULL AFTER `ip_address`;";
323
- $wpdb->query($query);
324
- }
325
- update_option('wpgdprc_db_version', '1.5');
326
- }
327
- }
328
-
329
  // Create 'Log' table
330
  if (version_compare($dbVersion, '1.6', '<')) {
331
  if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->base_prefix . "wpgdprc_log'") !== $wpdb->base_prefix . 'wpgdprc_log') {
@@ -344,6 +332,18 @@ class WPGDPRC {
344
  update_option('wpgdprc_db_version', '1.6');
345
  }
346
  }
 
 
 
 
 
 
 
 
 
 
 
 
347
  }
348
 
349
  /**
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.5.1
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
271
 
272
  public static function handleDatabaseTables() {
273
  $dbVersion = get_option('wpgdprc_db_version', 0);
274
+ if (version_compare($dbVersion, '1.7', '==')) {
275
  return;
276
  }
277
 
314
  update_option('wpgdprc_db_version', '1.2');
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  // Create 'Log' table
318
  if (version_compare($dbVersion, '1.6', '<')) {
319
  if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->base_prefix . "wpgdprc_log'") !== $wpdb->base_prefix . 'wpgdprc_log') {
332
  update_option('wpgdprc_db_version', '1.6');
333
  }
334
  }
335
+
336
+ // Add column 'token' to 'Access Requests' table
337
+ if (version_compare($dbVersion, '1.7', '<')) {
338
+ if ($wpdb->get_var("SHOW TABLES LIKE '" . AccessRequest::getDatabaseTableName() . "'") === AccessRequest::getDatabaseTableName()) {
339
+ if (!$wpdb->get_var("SHOW COLUMNS FROM " . AccessRequest::getDatabaseTableName() . " LIKE 'token'")) {
340
+ $query = "ALTER TABLE `" . AccessRequest::getDatabaseTableName() . "`
341
+ ADD column `token` text NOT NULL AFTER `ip_address`;";
342
+ $wpdb->query($query);
343
+ }
344
+ update_option('wpgdprc_db_version', '1.7');
345
+ }
346
+ }
347
  }
348
 
349
  /**