WP GDPR Compliance - Version 1.3.7

Version Description

Release date: June 1st, 2018 * Bugfix for admin columns at the comments panel. * Fixed a bug when creating the database tables used by the consents functionality.

Download this release

Release Info

Developer donnyoexman
Plugin Icon 128x128 WP GDPR Compliance
Version 1.3.7
Comparing to
See all releases

Code changes from version 1.3.6 to 1.3.7

Includes/Extensions/WP.php CHANGED
@@ -54,7 +54,7 @@ class WP {
54
  * @return array
55
  */
56
  public function displayAcceptedDateColumnInCommentOverview($columns = array()) {
57
- $columns['wpgdprc'] = apply_filters('wpgdprc_woocommerce_accepted_date_column_in_comment_overview', __('GDPR Accepted On', WP_GDPR_C_SLUG));
58
  return $columns;
59
  }
60
 
@@ -64,10 +64,10 @@ class WP {
64
  * @return string
65
  */
66
  public function displayAcceptedDateInCommentOverview($column = '', $commentId = 0) {
67
- if ($column === 'wpgdprc') {
68
  $date = get_comment_meta($commentId, '_wpgdprc', true);
69
  $value = (!empty($date)) ? Helper::localDateFormat(get_option('date_format') . ' ' . get_option('time_format'), $date) : __('Not accepted.', WP_GDPR_C_SLUG);
70
- echo apply_filters('wpgdprc_woocommerce_accepted_date_in_comment_overview', $value, $commentId);
71
  }
72
  return $column;
73
  }
54
  * @return array
55
  */
56
  public function displayAcceptedDateColumnInCommentOverview($columns = array()) {
57
+ $columns['wpgdprc-date'] = apply_filters('wpgdprc_accepted_date_column_in_comment_overview', __('GDPR Accepted On', WP_GDPR_C_SLUG));
58
  return $columns;
59
  }
60
 
64
  * @return string
65
  */
66
  public function displayAcceptedDateInCommentOverview($column = '', $commentId = 0) {
67
+ if ($column === 'wpgdprc-date') {
68
  $date = get_comment_meta($commentId, '_wpgdprc', true);
69
  $value = (!empty($date)) ? Helper::localDateFormat(get_option('date_format') . ' ' . get_option('time_format'), $date) : __('Not accepted.', WP_GDPR_C_SLUG);
70
+ echo apply_filters('wpgdprc_accepted_date_in_comment_overview', $value, $commentId);
71
  }
72
  return $column;
73
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP GDPR Compliance ===
2
- Contributors: donnyoexman, michaelvt, jeffreyvisser, 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: 4.9.4
6
  Requires PHP: 5.3
7
- Stable tag: 1.3.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -39,6 +39,11 @@ You'll find answers to many of your questions on [wpgdprc.com](https://www.wpgdp
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
42
  = 1.3.6 =
43
  *Release date: June 1st, 2018*
44
  * Added 'Consents' tab. Ask your visitors for permission to enable certain scripts for tracking or advertising purposes.
1
  === WP GDPR Compliance ===
2
+ Contributors: donnyoexman, jeffreyvisser, byjarno, 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: 4.9.4
6
  Requires PHP: 5.3
7
+ Stable tag: 1.3.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
39
 
40
  == Changelog ==
41
 
42
+ = 1.3.7 =
43
+ *Release date: June 1st, 2018*
44
+ * Bugfix for admin columns at the comments panel.
45
+ * Fixed a bug when creating the database tables used by the consents functionality.
46
+
47
  = 1.3.6 =
48
  *Release date: June 1st, 2018*
49
  * Added 'Consents' tab. Ask your visitors for permission to enable certain scripts for tracking or advertising purposes.
uninstall.php CHANGED
@@ -25,6 +25,7 @@ $wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE 'wpgdprc\_%'
25
  // Tables
26
  $wpdb->query("DROP TABLE IF EXISTS `{$wpdb->base_prefix}wpgdprc_access_requests`");
27
  $wpdb->query("DROP TABLE IF EXISTS `{$wpdb->base_prefix}wpgdprc_delete_requests`");
 
28
 
29
  // Cronjobs
30
  wp_clear_scheduled_hook('wpgdprc_deactivate_access_requests');
25
  // Tables
26
  $wpdb->query("DROP TABLE IF EXISTS `{$wpdb->base_prefix}wpgdprc_access_requests`");
27
  $wpdb->query("DROP TABLE IF EXISTS `{$wpdb->base_prefix}wpgdprc_delete_requests`");
28
+ $wpdb->query("DROP TABLE IF EXISTS `{$wpdb->base_prefix}wpgdprc_consents`");
29
 
30
  // Cronjobs
31
  wp_clear_scheduled_hook('wpgdprc_deactivate_access_requests');
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.3.6
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
@@ -105,16 +105,17 @@ class WPGDPRC {
105
  wp_clear_scheduled_hook('wpgdprc_deactivate_access_requests');
106
  }
107
  }
108
- if (empty($_COOKIE['wpgdprc-consent']) && Consent::getInstance()->getTotal(array('active' => array('value' => 1))) > 0) {
109
- add_action('wp_footer', array(Action::getInstance(), 'addConsentBar'), 998);
110
- add_action('wp_footer', array(Action::getInstance(), 'addConsentModal'), 999);
111
- } else {
112
- add_action('wp_head', array(Action::getInstance(), 'addConsentsToHead'), 999);
113
- add_action('wp_footer', array(Action::getInstance(), 'addConsentsToFooter'), 999);
114
- }
115
  // TODO: Better way to create database tables
116
  if (!Consent::databaseTableExists()) {
117
  Helper::createConsentsTables();
 
 
 
 
 
 
 
 
118
  }
119
  }
120
 
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.3.7
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
105
  wp_clear_scheduled_hook('wpgdprc_deactivate_access_requests');
106
  }
107
  }
 
 
 
 
 
 
 
108
  // TODO: Better way to create database tables
109
  if (!Consent::databaseTableExists()) {
110
  Helper::createConsentsTables();
111
+ } else {
112
+ if (empty($_COOKIE['wpgdprc-consent']) && Consent::getInstance()->getTotal(array('active' => array('value' => 1))) > 0) {
113
+ add_action('wp_footer', array(Action::getInstance(), 'addConsentBar'), 998);
114
+ add_action('wp_footer', array(Action::getInstance(), 'addConsentModal'), 999);
115
+ } else {
116
+ add_action('wp_head', array(Action::getInstance(), 'addConsentsToHead'), 999);
117
+ add_action('wp_footer', array(Action::getInstance(), 'addConsentsToFooter'), 999);
118
+ }
119
  }
120
  }
121