GDPR - Version 2.0.4

Version Description

  • Adding two missing translation strings
  • Removing debug code that I forgot to remove from 2.0.3
  • Adding to audit log when user reconsents.
Download this release

Release Info

Developer fclaussen
Plugin Icon 128x128 GDPR
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: gdpr, compliance, privacy, law, general data protection regulation
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 4.9
8
- Stable tag: 2.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -206,6 +206,11 @@ Activating this plugin does not guarantee that an organisation is successfully m
206
 
207
  == Changelog ==
208
 
 
 
 
 
 
209
  = 2.0.3 =
210
  * Fix third party cookies now showing up in the privacy preferences window or the settings page.
211
 
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 4.9
8
+ Stable tag: 2.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
206
 
207
  == Changelog ==
208
 
209
+ = 2.0.4 =
210
+ * Adding two missing translation strings
211
+ * Removing debug code that I forgot to remove from 2.0.3
212
+ * Adding to audit log when user reconsents.
213
+
214
  = 2.0.3 =
215
  * Fix third party cookies now showing up in the privacy preferences window or the settings page.
216
 
admin/partials/settings.php CHANGED
@@ -281,7 +281,6 @@
281
  </tr>
282
  </table>
283
  <div class="tab-hosts" data-tabid="<?php echo esc_attr( $cat_id ); ?>">
284
- <?php var_dump($cookie_cat); ?>
285
  <?php if ( isset( $cookie_cat['hosts'] ) && $cookie_cat['hosts'] ) : ?>
286
  <?php foreach ( $cookie_cat['hosts'] as $domain_id => $domain ) : ?>
287
  <div class="postbox">
281
  </tr>
282
  </table>
283
  <div class="tab-hosts" data-tabid="<?php echo esc_attr( $cat_id ); ?>">
 
284
  <?php if ( isset( $cookie_cat['hosts'] ) && $cookie_cat['hosts'] ) : ?>
285
  <?php foreach ( $cookie_cat['hosts'] as $domain_id => $domain ) : ?>
286
  <div class="postbox">
gdpr.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: GDPR
17
  * Plugin URI: https://trewknowledge.com
18
  * Description: This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.
19
- * Version: 2.0.3
20
  * Author: Trew Knowledge
21
  * Author URI: https://trewknowledge.com
22
  * License: GPL-2.0+
@@ -35,7 +35,7 @@ if ( ! defined( 'WPINC' ) ) {
35
  * Start at version 1.0.0 and use SemVer - https://semver.org
36
  * Rename this for your plugin and update it as you release new versions.
37
  */
38
- define( 'GDPR_VERSION', '2.0.3' );
39
 
40
  /**
41
  * The code that runs during plugin activation.
16
  * Plugin Name: GDPR
17
  * Plugin URI: https://trewknowledge.com
18
  * Description: This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.
19
+ * Version: 2.0.4
20
  * Author: Trew Knowledge
21
  * Author URI: https://trewknowledge.com
22
  * License: GPL-2.0+
35
  * Start at version 1.0.0 and use SemVer - https://semver.org
36
  * Rename this for your plugin and update it as you release new versions.
37
  */
38
+ define( 'GDPR_VERSION', '2.0.4' );
39
 
40
  /**
41
  * The code that runs during plugin activation.
languages/gdpr.pot CHANGED
@@ -121,7 +121,7 @@ msgstr ""
121
  msgid "Ignore"
122
  msgstr ""
123
 
124
- #: admin/class-gdpr-admin.php:592, admin/class-gdpr-admin.php:731, admin/class-gdpr-admin.php:796, public/class-gdpr-public.php:196, public/class-gdpr-public.php:293, public/class-gdpr-public.php:352
125
  msgid "We could not verify the the security token. Please try again."
126
  msgstr ""
127
 
@@ -154,7 +154,7 @@ msgstr ""
154
  msgid "Profile Updated. These are the user consents after the save:"
155
  msgstr ""
156
 
157
- #: admin/class-gdpr-admin.php:929, admin/partials/settings.php:333
158
  msgid "Consents"
159
  msgstr ""
160
 
@@ -552,14 +552,18 @@ msgstr ""
552
  msgid "I Agree"
553
  msgstr ""
554
 
555
- #: public/class-gdpr-public.php:196, public/class-gdpr-public.php:352, public/class-gdpr-requests-public.php:78, public/class-gdpr-requests-public.php:82, public/class-gdpr-requests-public.php:92, public/class-gdpr-requests-public.php:105, public/class-gdpr-requests-public.php:121, public/class-gdpr-requests-public.php:144, public/class-gdpr-requests-public.php:152, public/class-gdpr-requests-public.php:198, public/partials/confirmation-screens.php:32, public/partials/confirmation-screens.php:36, public/partials/confirmation-screens.php:40, public/partials/confirmation-screens.php:44
556
  msgid "Error!"
557
  msgstr ""
558
 
559
- #: public/class-gdpr-public.php:232
560
  msgid "User updated their privacy preferences. These are the new approved cookies and consent preferences:"
561
  msgstr ""
562
 
 
 
 
 
563
  #: public/class-gdpr-requests-public.php:78
564
  msgid "Invalid type of request. Please try again."
565
  msgstr ""
@@ -885,7 +889,7 @@ msgstr ""
885
  msgid "OFF"
886
  msgstr ""
887
 
888
- #: admin/partials/settings.php:240, admin/partials/settings.php:294, admin/partials/templates/tmpl-cookies.php:42, admin/partials/templates/tmpl-cookies.php:99
889
  msgid "Cookies used"
890
  msgstr ""
891
 
@@ -921,59 +925,59 @@ msgstr ""
921
  msgid "Cookies that are set by a third party, like facebook.com."
922
  msgstr ""
923
 
924
- #: admin/partials/settings.php:288, admin/partials/templates/tmpl-cookies.php:94
925
  msgid "Remove this domain."
926
  msgstr ""
927
 
928
- #: admin/partials/settings.php:295, admin/partials/settings.php:296
929
  msgid "A comma separated list of cookies that your site is using from this third-party provider."
930
  msgstr ""
931
 
932
- #: admin/partials/settings.php:308
933
  msgid "Opt Out Link"
934
  msgstr ""
935
 
936
- #: admin/partials/settings.php:309, admin/partials/settings.php:310
937
  msgid "Add a link with the third-party instructions on how to opt out of their cookies."
938
  msgstr ""
939
 
940
- #: admin/partials/settings.php:318, admin/partials/templates/tmpl-cookies.php:111
941
  msgid "Url with instructions on how to opt out."
942
  msgstr ""
943
 
944
- #: admin/partials/settings.php:334
945
  msgid "E.g. Privacy Policy or Cookie Policy"
946
  msgstr ""
947
 
948
- #: admin/partials/settings.php:335
949
  msgid "Add consent"
950
  msgstr ""
951
 
952
- #: admin/partials/settings.php:340, admin/partials/templates/tmpl-consents.php:3
953
  msgid "Unregister this consent."
954
  msgstr ""
955
 
956
- #: admin/partials/settings.php:347, admin/partials/templates/tmpl-consents.php:10
957
  msgid "Policy Page"
958
  msgstr ""
959
 
960
- #: admin/partials/settings.php:348, admin/partials/settings.php:349, admin/partials/templates/tmpl-consents.php:11, admin/partials/templates/tmpl-consents.php:12
961
  msgid "This page will be tracked for changes and you will be prompted to ask users to re-consent to the new policy. Selecting a page will make this consent required."
962
  msgstr ""
963
 
964
- #: admin/partials/settings.php:366, admin/partials/templates/tmpl-consents.php:29
965
  msgid "Long description"
966
  msgstr ""
967
 
968
- #: admin/partials/settings.php:367, admin/partials/settings.php:368, admin/partials/templates/tmpl-consents.php:30, admin/partials/templates/tmpl-consents.php:31
969
  msgid "This will show up at the privacy preferences center, under the name of the consent."
970
  msgstr ""
971
 
972
- #: admin/partials/settings.php:378, admin/partials/templates/tmpl-consents.php:41
973
  msgid "Short description"
974
  msgstr ""
975
 
976
- #: admin/partials/settings.php:379, admin/partials/settings.php:380, admin/partials/templates/tmpl-consents.php:42, admin/partials/templates/tmpl-consents.php:43
977
  msgid "This will show up at registration forms next to checkboxes."
978
  msgstr ""
979
 
@@ -1033,6 +1037,10 @@ msgstr ""
1033
  msgid "6 digit token (optional)"
1034
  msgstr ""
1035
 
 
 
 
 
1036
  #: public/partials/confirmation-screens.php:20
1037
  msgid "Your account"
1038
  msgstr ""
@@ -1105,6 +1113,10 @@ msgstr ""
1105
  msgid "View"
1106
  msgstr ""
1107
 
 
 
 
 
1108
  #: templates/email/complaint-request.php:4
1109
  msgid ""
1110
  "Someone placed a complaint on your behalf on our site.\n"
121
  msgid "Ignore"
122
  msgstr ""
123
 
124
+ #: admin/class-gdpr-admin.php:592, admin/class-gdpr-admin.php:731, admin/class-gdpr-admin.php:796, public/class-gdpr-public.php:198, public/class-gdpr-public.php:295, public/class-gdpr-public.php:354
125
  msgid "We could not verify the the security token. Please try again."
126
  msgstr ""
127
 
154
  msgid "Profile Updated. These are the user consents after the save:"
155
  msgstr ""
156
 
157
+ #: admin/class-gdpr-admin.php:929, admin/partials/settings.php:332
158
  msgid "Consents"
159
  msgstr ""
160
 
552
  msgid "I Agree"
553
  msgstr ""
554
 
555
+ #: public/class-gdpr-public.php:198, public/class-gdpr-public.php:354, public/class-gdpr-requests-public.php:78, public/class-gdpr-requests-public.php:82, public/class-gdpr-requests-public.php:92, public/class-gdpr-requests-public.php:105, public/class-gdpr-requests-public.php:121, public/class-gdpr-requests-public.php:144, public/class-gdpr-requests-public.php:152, public/class-gdpr-requests-public.php:198, public/partials/confirmation-screens.php:32, public/partials/confirmation-screens.php:36, public/partials/confirmation-screens.php:40, public/partials/confirmation-screens.php:44
556
  msgid "Error!"
557
  msgstr ""
558
 
559
+ #: public/class-gdpr-public.php:234
560
  msgid "User updated their privacy preferences. These are the new approved cookies and consent preferences:"
561
  msgstr ""
562
 
563
+ #: public/class-gdpr-public.php:361
564
+ msgid "User provided new consent for %1$s."
565
+ msgstr ""
566
+
567
  #: public/class-gdpr-requests-public.php:78
568
  msgid "Invalid type of request. Please try again."
569
  msgstr ""
889
  msgid "OFF"
890
  msgstr ""
891
 
892
+ #: admin/partials/settings.php:240, admin/partials/settings.php:293, admin/partials/templates/tmpl-cookies.php:42, admin/partials/templates/tmpl-cookies.php:99
893
  msgid "Cookies used"
894
  msgstr ""
895
 
925
  msgid "Cookies that are set by a third party, like facebook.com."
926
  msgstr ""
927
 
928
+ #: admin/partials/settings.php:287, admin/partials/templates/tmpl-cookies.php:94
929
  msgid "Remove this domain."
930
  msgstr ""
931
 
932
+ #: admin/partials/settings.php:294, admin/partials/settings.php:295
933
  msgid "A comma separated list of cookies that your site is using from this third-party provider."
934
  msgstr ""
935
 
936
+ #: admin/partials/settings.php:307
937
  msgid "Opt Out Link"
938
  msgstr ""
939
 
940
+ #: admin/partials/settings.php:308, admin/partials/settings.php:309
941
  msgid "Add a link with the third-party instructions on how to opt out of their cookies."
942
  msgstr ""
943
 
944
+ #: admin/partials/settings.php:317, admin/partials/templates/tmpl-cookies.php:111
945
  msgid "Url with instructions on how to opt out."
946
  msgstr ""
947
 
948
+ #: admin/partials/settings.php:333
949
  msgid "E.g. Privacy Policy or Cookie Policy"
950
  msgstr ""
951
 
952
+ #: admin/partials/settings.php:334
953
  msgid "Add consent"
954
  msgstr ""
955
 
956
+ #: admin/partials/settings.php:339, admin/partials/templates/tmpl-consents.php:3
957
  msgid "Unregister this consent."
958
  msgstr ""
959
 
960
+ #: admin/partials/settings.php:346, admin/partials/templates/tmpl-consents.php:10
961
  msgid "Policy Page"
962
  msgstr ""
963
 
964
+ #: admin/partials/settings.php:347, admin/partials/settings.php:348, admin/partials/templates/tmpl-consents.php:11, admin/partials/templates/tmpl-consents.php:12
965
  msgid "This page will be tracked for changes and you will be prompted to ask users to re-consent to the new policy. Selecting a page will make this consent required."
966
  msgstr ""
967
 
968
+ #: admin/partials/settings.php:365, admin/partials/templates/tmpl-consents.php:29
969
  msgid "Long description"
970
  msgstr ""
971
 
972
+ #: admin/partials/settings.php:366, admin/partials/settings.php:367, admin/partials/templates/tmpl-consents.php:30, admin/partials/templates/tmpl-consents.php:31
973
  msgid "This will show up at the privacy preferences center, under the name of the consent."
974
  msgstr ""
975
 
976
+ #: admin/partials/settings.php:377, admin/partials/templates/tmpl-consents.php:41
977
  msgid "Short description"
978
  msgstr ""
979
 
980
+ #: admin/partials/settings.php:378, admin/partials/settings.php:379, admin/partials/templates/tmpl-consents.php:42, admin/partials/templates/tmpl-consents.php:43
981
  msgid "This will show up at registration forms next to checkboxes."
982
  msgstr ""
983
 
1037
  msgid "6 digit token (optional)"
1038
  msgstr ""
1039
 
1040
+ #: public/partials/complaint-form.php:8
1041
+ msgid "Type your complaint here"
1042
+ msgstr ""
1043
+
1044
  #: public/partials/confirmation-screens.php:20
1045
  msgid "Your account"
1046
  msgstr ""
1113
  msgid "View"
1114
  msgstr ""
1115
 
1116
+ #: public/partials/rectify-form.php:8
1117
+ msgid "Type your rectification request here"
1118
+ msgstr ""
1119
+
1120
  #: templates/email/complaint-request.php:4
1121
  msgid ""
1122
  "Someone placed a complaint on your behalf on our site.\n"
public/class-gdpr-public.php CHANGED
@@ -144,6 +144,8 @@ class GDPR_Public {
144
  $show_cookie_cat_checkboxes = get_option( 'gdpr_display_cookie_categories_in_bar', false );
145
  $button_text = apply_filters( 'gdpr_privacy_bar_button_text', esc_html__( 'I Agree', 'gdpr' ) );
146
 
 
 
147
  if ( empty( $content ) || ! $privacy_bar_enabled ) {
148
  return;
149
  }
@@ -356,6 +358,7 @@ class GDPR_Public {
356
 
357
  foreach ( $consents as $consent ) {
358
  add_user_meta( $user_id, 'gdpr_consents', $consent );
 
359
  }
360
 
361
  wp_send_json_success();
144
  $show_cookie_cat_checkboxes = get_option( 'gdpr_display_cookie_categories_in_bar', false );
145
  $button_text = apply_filters( 'gdpr_privacy_bar_button_text', esc_html__( 'I Agree', 'gdpr' ) );
146
 
147
+ $privacy_bar_enabled = apply_filters( 'gdpr_privacy_bar_display', $privacy_bar_enabled );
148
+
149
  if ( empty( $content ) || ! $privacy_bar_enabled ) {
150
  return;
151
  }
358
 
359
  foreach ( $consents as $consent ) {
360
  add_user_meta( $user_id, 'gdpr_consents', $consent );
361
+ GDPR_Audit_Log::log( $user_id, sprintf( esc_html__( 'User provided new consent for %1$s.', 'gdpr' ), esc_html( $consent ) ) );
362
  }
363
 
364
  wp_send_json_success();
public/partials/complaint-form.php CHANGED
@@ -5,7 +5,7 @@
5
  <?php if ( ! is_user_logged_in() ): ?>
6
  <input type="email" name="user_email" placeholder="user@domain.com" required>
7
  <?php endif ?>
8
- <textarea name="data" rows="5" required placeholder="<?php echo esc_attr( 'Type your complaint here', 'gdpr' ); ?>"></textarea>
9
 
10
  <?php GDPR_Public::add_recaptcha(); ?>
11
  <?php $submit_button_text = apply_filters( "gdpr_complaint_request_form_submit_text", esc_attr__( 'Submit', 'gdpr' ) ); ?>
5
  <?php if ( ! is_user_logged_in() ): ?>
6
  <input type="email" name="user_email" placeholder="user@domain.com" required>
7
  <?php endif ?>
8
+ <textarea name="data" rows="5" required placeholder="<?php echo esc_attr__( 'Type your complaint here', 'gdpr' ); ?>"></textarea>
9
 
10
  <?php GDPR_Public::add_recaptcha(); ?>
11
  <?php $submit_button_text = apply_filters( "gdpr_complaint_request_form_submit_text", esc_attr__( 'Submit', 'gdpr' ) ); ?>
public/partials/rectify-form.php CHANGED
@@ -5,7 +5,7 @@
5
  <?php if ( ! is_user_logged_in() ): ?>
6
  <input type="email" name="user_email" placeholder="user@domain.com" required>
7
  <?php endif ?>
8
- <textarea name="data" rows="5" required placeholder="<?php echo esc_attr( 'Type your rectification request here', 'gdpr' ); ?>"></textarea>
9
  <?php GDPR_Public::add_recaptcha(); ?>
10
  <?php $submit_button_text = apply_filters( "gdpr_rectify_request_form_submit_text", esc_attr__( 'Submit', 'gdpr' ) ); ?>
11
  <input type="submit" value="<?php echo esc_attr( $submit_button_text ); ?>">
5
  <?php if ( ! is_user_logged_in() ): ?>
6
  <input type="email" name="user_email" placeholder="user@domain.com" required>
7
  <?php endif ?>
8
+ <textarea name="data" rows="5" required placeholder="<?php echo esc_attr__( 'Type your rectification request here', 'gdpr' ); ?>"></textarea>
9
  <?php GDPR_Public::add_recaptcha(); ?>
10
  <?php $submit_button_text = apply_filters( "gdpr_rectify_request_form_submit_text", esc_attr__( 'Submit', 'gdpr' ) ); ?>
11
  <input type="submit" value="<?php echo esc_attr( $submit_button_text ); ?>">