GDPR - Version 2.0.10

Version Description

  • Fix new re-consent bar not showing if users had no prior consent.
  • Added a PHP version check on activation.
Download this release

Release Info

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

Code changes from version 2.0.9 to 2.0.10

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.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -206,6 +206,10 @@ Activating this plugin does not guarantee that an organisation is successfully m
206
 
207
  == Changelog ==
208
 
 
 
 
 
209
  = 2.0.9 =
210
  * Fix a syntax error introduced after cleaning code with PHPCS.
211
  * Fix functions that were not checking if registered consents were empty before running.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 4.9
8
+ Stable tag: 2.0.10
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.10 =
210
+ * Fix new re-consent bar not showing if users had no prior consent.
211
+ * Added a PHP version check on activation.
212
+
213
  = 2.0.9 =
214
  * Fix a syntax error introduced after cleaning code with PHPCS.
215
  * Fix functions that were not checking if registered consents were empty before running.
admin/class-gdpr-admin.php CHANGED
@@ -560,6 +560,18 @@ class GDPR_Admin {
560
  }
561
  }
562
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  /**
564
  * Admin notice when one of the policies has been updated.
565
  * @since 1.0.0
560
  }
561
  }
562
 
563
+ public function version_check_notice() {
564
+ if( -1 === version_compare( phpversion(), GDPR_REQUIRED_PHP_VERSION ) ) {
565
+ ?>
566
+ <div class="notice notice-error">
567
+ <p><strong><?php esc_html_e( 'GDPR', 'gdpr' ); ?></strong></p>
568
+ <p><?php echo sprintf( esc_html__( 'Your current PHP version (%1$s) is below the plugin required version of %2$s.', 'gdpr' ), phpversion(), GDPR_REQUIRED_PHP_VERSION ) ?></p>
569
+ </div>
570
+ <?php
571
+ deactivate_plugins( 'gdpr/gdpr.php' );
572
+ }
573
+ }
574
+
575
  /**
576
  * Admin notice when one of the policies has been updated.
577
  * @since 1.0.0
admin/partials/settings.php CHANGED
@@ -87,7 +87,6 @@
87
  <h2 class="title"><?php esc_html_e( 'Privacy Center', 'gdpr' ); ?></h2>
88
  <p>
89
  <?php esc_html_e( 'This section handles the privacy bar and some of the privacy preferences window.', 'gdpr' ); ?><br>
90
- <strong><?php esc_html_e( 'Important:', 'gdpr' ); ?></strong> <?php esc_html_e( 'If the privacy banner text is not filled out, the privacy banner will not show up. Even if you registered your cookies.', 'gdpr' ); ?></p>
91
  <table class="form-table">
92
  <tbody>
93
  <tr>
87
  <h2 class="title"><?php esc_html_e( 'Privacy Center', 'gdpr' ); ?></h2>
88
  <p>
89
  <?php esc_html_e( 'This section handles the privacy bar and some of the privacy preferences window.', 'gdpr' ); ?><br>
 
90
  <table class="form-table">
91
  <tbody>
92
  <tr>
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.9
20
  * Author: Trew Knowledge
21
  * Author URI: https://trewknowledge.com
22
  * License: GPL-2.0+
@@ -35,7 +35,12 @@ 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.9' );
 
 
 
 
 
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.10
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.10' );
39
+
40
+ /**
41
+ * The minimum PHP version required to run the plugin.
42
+ */
43
+ define( 'GDPR_REQUIRED_PHP_VERSION', '5.6' );
44
 
45
  /**
46
  * The code that runs during plugin activation.
includes/class-gdpr-activator.php CHANGED
@@ -32,6 +32,10 @@ class GDPR_Activator {
32
  * @author Fernando Claussen <fernandoclaussen@gmail.com>
33
  */
34
  public static function activate() {
 
 
 
 
35
  add_option( 'gdpr_disable_css', false );
36
  add_option( 'gdpr_enable_telemetry_tracker', false );
37
  add_option( 'gdpr_use_recaptcha', false );
32
  * @author Fernando Claussen <fernandoclaussen@gmail.com>
33
  */
34
  public static function activate() {
35
+ if( -1 === version_compare( phpversion(), GDPR_REQUIRED_PHP_VERSION ) ) {
36
+ die(sprintf( esc_html__( 'Your current PHP version (%1$s) is below the plugin required version of %2$s.', 'gdpr' ), phpversion(), GDPR_REQUIRED_PHP_VERSION ));
37
+ }
38
+
39
  add_option( 'gdpr_disable_css', false );
40
  add_option( 'gdpr_enable_telemetry_tracker', false );
41
  add_option( 'gdpr_use_recaptcha', false );
includes/class-gdpr.php CHANGED
@@ -192,6 +192,7 @@ class GDPR {
192
  add_action( 'show_user_profile', array( $plugin_admin, 'edit_user_profile' ) );
193
  add_action( 'personal_options_update', array( $plugin_admin, 'user_profile_update' ) );
194
  add_action( 'admin_notices', array( $plugin_admin, 'policy_updated_notice' ) );
 
195
  add_action( 'admin_notices', array( $plugin_admin, 'review_settings_after_v2_notice' ) );
196
  add_action( 'upgrader_process_complete', array( $plugin_admin, 'upgrade_completed' ), 10, 2 );
197
  add_action( 'wp_ajax_ignore_policy_update', array( $plugin_admin, 'ignore_policy_update' ) );
192
  add_action( 'show_user_profile', array( $plugin_admin, 'edit_user_profile' ) );
193
  add_action( 'personal_options_update', array( $plugin_admin, 'user_profile_update' ) );
194
  add_action( 'admin_notices', array( $plugin_admin, 'policy_updated_notice' ) );
195
+ add_action( 'admin_notices', array( $plugin_admin, 'version_check_notice' ) );
196
  add_action( 'admin_notices', array( $plugin_admin, 'review_settings_after_v2_notice' ) );
197
  add_action( 'upgrader_process_complete', array( $plugin_admin, 'upgrade_completed' ), 10, 2 );
198
  add_action( 'wp_ajax_ignore_policy_update', array( $plugin_admin, 'ignore_policy_update' ) );
languages/gdpr.pot CHANGED
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
- #: admin/class-gdpr-admin.php:100, admin/class-gdpr-admin.php:113
17
  msgid "GDPR"
18
  msgstr ""
19
 
@@ -105,56 +105,60 @@ msgstr ""
105
  msgid "Please keep in mind the plugin might not work as intended until these settings are reviewed."
106
  msgstr ""
107
 
108
- #: admin/class-gdpr-admin.php:578
 
 
 
 
109
  msgid "Your %s page has been updated."
110
  msgstr ""
111
 
112
- #: admin/class-gdpr-admin.php:580
113
  msgid "In case this was not a small typo fix, you must ask users for explicit consent again."
114
  msgstr ""
115
 
116
- #: admin/class-gdpr-admin.php:589
117
  msgid "Ask for consent"
118
  msgstr ""
119
 
120
- #: admin/class-gdpr-admin.php:598
121
  msgid "Ignore"
122
  msgstr ""
123
 
124
- #: admin/class-gdpr-admin.php:613, admin/class-gdpr-admin.php:757, admin/class-gdpr-admin.php:833, public/class-gdpr-public.php:208, public/class-gdpr-public.php:318, public/class-gdpr-public.php:381
125
  msgid "We could not verify the the security token. Please try again."
126
  msgstr ""
127
 
128
- #: admin/class-gdpr-admin.php:625
129
  msgid "One or more required fields are missing. Please try again."
130
  msgstr ""
131
 
132
- #: admin/class-gdpr-admin.php:675
133
  msgid "Data breach notification has been initialized. An email confirmation has been sent to the website controller."
134
  msgstr ""
135
 
136
- #: admin/class-gdpr-admin.php:739
137
  msgid "ERROR"
138
  msgstr ""
139
 
140
- #: admin/class-gdpr-admin.php:741
141
  msgid "is a required consent"
142
  msgstr ""
143
 
144
  #. translators: 1: The name of the policy that was updated.
145
- #: admin/class-gdpr-admin.php:777
146
  msgid "%1$s has been updated. Removing the %1$s consent and requesting new consent."
147
  msgstr ""
148
 
149
- #: admin/class-gdpr-admin.php:856, includes/class-gdpr-help.php:184, public/partials/privacy-preferences-modal.php:32, public/partials/privacy-preferences-modal.php:65
150
  msgid "Consent Management"
151
  msgstr ""
152
 
153
- #: admin/class-gdpr-admin.php:893
154
  msgid "Profile Updated. These are the user consents after the save:"
155
  msgstr ""
156
 
157
- #: admin/class-gdpr-admin.php:972, admin/partials/settings.php:348
158
  msgid "Consents"
159
  msgstr ""
160
 
@@ -519,12 +523,12 @@ msgstr ""
519
  msgid "User request expired. Removing %s user_meta."
520
  msgstr ""
521
 
522
- #: includes/class-gdpr.php:304
523
  msgid "User registered to the site."
524
  msgstr ""
525
 
526
  #. translators: Name of consent
527
- #: includes/class-gdpr.php:311
528
  msgid "User gave explicit consent to %s"
529
  msgstr ""
530
 
@@ -773,223 +777,215 @@ msgstr ""
773
  msgid "This section handles the privacy bar and some of the privacy preferences window."
774
  msgstr ""
775
 
776
- #: admin/partials/settings.php:90
777
- msgid "Important:"
778
- msgstr ""
779
-
780
- #: admin/partials/settings.php:90
781
- msgid "If the privacy banner text is not filled out, the privacy banner will not show up. Even if you registered your cookies."
782
- msgstr ""
783
-
784
- #: admin/partials/settings.php:95
785
  msgid "Enable the Privacy Bar"
786
  msgstr ""
787
 
788
- #: admin/partials/settings.php:99
789
  msgid "Toggles the Privacy Bar On/Off."
790
  msgstr ""
791
 
792
- #: admin/partials/settings.php:104
793
  msgid "Display the cookie categories in the privacy bar"
794
  msgstr ""
795
 
796
- #: admin/partials/settings.php:113
797
  msgid "Privacy Bar Content"
798
  msgstr ""
799
 
800
- #: admin/partials/settings.php:114, admin/partials/settings.php:115
801
  msgid "Try to add an brief explanation of how you use your user data in a few lines. This will show up in the privacy bar."
802
  msgstr ""
803
 
804
- #: admin/partials/settings.php:126
805
  msgid "Privacy Excerpt"
806
  msgstr ""
807
 
808
- #: admin/partials/settings.php:127, admin/partials/settings.php:128
809
  msgid "This show up in the privacy preferences window."
810
  msgstr ""
811
 
812
- #: admin/partials/settings.php:135
813
  msgid "This will appear in the consent section of the privacy preference window."
814
  msgstr ""
815
 
816
- #: admin/partials/settings.php:141
817
  msgid "Request Forms reCAPTCHA"
818
  msgstr ""
819
 
820
- #: admin/partials/settings.php:142
821
  msgid "To prevent spam attacks, you have the option to enable reCAPTCHA. Configure below your keys to make it work with our request forms."
822
  msgstr ""
823
 
824
- #: admin/partials/settings.php:147
825
  msgid "You can find the necessary information %s."
826
  msgstr ""
827
 
828
- #: admin/partials/settings.php:148
829
  msgid "here"
830
  msgstr ""
831
 
832
- #: admin/partials/settings.php:156
833
  msgid "Enable reCAPTCHA"
834
  msgstr ""
835
 
836
- #: admin/partials/settings.php:165
837
  msgid "Site Key"
838
  msgstr ""
839
 
840
- #: admin/partials/settings.php:174
841
  msgid "Secret Key"
842
  msgstr ""
843
 
844
- #: admin/partials/settings.php:185
845
  msgid "WooCommerce"
846
  msgstr ""
847
 
848
- #: admin/partials/settings.php:190
849
  msgid "Add consent checkboxes to the registration page"
850
  msgstr ""
851
 
852
- #: admin/partials/settings.php:199
853
  msgid "Add consent checkboxes to the checkout registration form"
854
  msgstr ""
855
 
856
- #: admin/partials/settings.php:211
857
  msgid "Cookies"
858
  msgstr ""
859
 
860
- #: admin/partials/settings.php:212
861
  msgid "Category name"
862
  msgstr ""
863
 
864
- #: admin/partials/settings.php:213
865
  msgid "Add cookie category"
866
  msgstr ""
867
 
868
- #: admin/partials/settings.php:217, admin/partials/templates/tmpl-cookies.php:3
869
  msgid "Remove this tab."
870
  msgstr ""
871
 
872
- #: admin/partials/settings.php:223, admin/partials/templates/tmpl-cookies.php:9
873
  msgid "Category Name"
874
  msgstr ""
875
 
876
- #: admin/partials/settings.php:224, admin/partials/settings.php:225
877
  msgid "Change this value if you want to name it something different."
878
  msgstr ""
879
 
880
- #: admin/partials/settings.php:237, admin/partials/templates/tmpl-cookies.php:23
881
  msgid "Status"
882
  msgstr ""
883
 
884
- #: admin/partials/settings.php:238, admin/partials/settings.php:239
885
  msgid "Required cookies are cookies that cannot be opted out of and need to be created for the site to function properly. The ON status means that the cookie preference for this category will be enabled by default. The OFF status means the user needs to manually turn these cookies on to opt into these cookies."
886
  msgstr ""
887
 
888
- #: admin/partials/settings.php:247, public/partials/privacy-preferences-modal.php:75, public/partials/privacy-preferences-modal.php:122, admin/partials/templates/tmpl-cookies.php:33
889
  msgid "Required"
890
  msgstr ""
891
 
892
- #: admin/partials/settings.php:248, admin/partials/templates/tmpl-cookies.php:34
893
  msgid "ON"
894
  msgstr ""
895
 
896
- #: admin/partials/settings.php:249, admin/partials/templates/tmpl-cookies.php:35
897
  msgid "OFF"
898
  msgstr ""
899
 
900
- #: admin/partials/settings.php:256, admin/partials/settings.php:309, admin/partials/templates/tmpl-cookies.php:42, admin/partials/templates/tmpl-cookies.php:99
901
  msgid "Cookies used"
902
  msgstr ""
903
 
904
- #: admin/partials/settings.php:257, admin/partials/settings.php:258, admin/partials/templates/tmpl-cookies.php:43, admin/partials/templates/tmpl-cookies.php:44
905
  msgid "A comma-separated list of cookies that your site is using that fit this category."
906
  msgstr ""
907
 
908
- #: admin/partials/settings.php:266, admin/partials/templates/tmpl-cookies.php:52, admin/partials/templates/tmpl-cookies.php:103
909
  msgid "Comma separated list."
910
  msgstr ""
911
 
912
- #: admin/partials/settings.php:272, admin/partials/templates/tmpl-cookies.php:58
913
  msgid "How are these used"
914
  msgstr ""
915
 
916
- #: admin/partials/settings.php:273, admin/partials/settings.php:274
917
  msgid "A brief explanation of why you are requesting to use these cookies, what they are for, and how you process them."
918
  msgstr ""
919
 
920
- #: admin/partials/settings.php:284, admin/partials/templates/tmpl-cookies.php:70
921
  msgid "Third party domain"
922
  msgstr ""
923
 
924
- #: admin/partials/settings.php:285, admin/partials/settings.php:286
925
  msgid "E.g. facebook.com"
926
  msgstr ""
927
 
928
- #: admin/partials/settings.php:292, admin/partials/templates/tmpl-cookies.php:78
929
  msgid "domain.com"
930
  msgstr ""
931
 
932
- #: admin/partials/settings.php:293, admin/partials/templates/tmpl-cookies.php:79
933
  msgid "Add"
934
  msgstr ""
935
 
936
- #: admin/partials/settings.php:295, admin/partials/templates/tmpl-cookies.php:81
937
  msgid "Cookies that are set by a third party, like facebook.com."
938
  msgstr ""
939
 
940
- #: admin/partials/settings.php:303, admin/partials/templates/tmpl-cookies.php:94
941
  msgid "Remove this domain."
942
  msgstr ""
943
 
944
- #: admin/partials/settings.php:310, admin/partials/settings.php:311
945
  msgid "A comma separated list of cookies that your site is using from this third-party provider."
946
  msgstr ""
947
 
948
- #: admin/partials/settings.php:323
949
  msgid "Opt Out Link"
950
  msgstr ""
951
 
952
- #: admin/partials/settings.php:324, admin/partials/settings.php:325
953
  msgid "Add a link with the third-party instructions on how to opt out of their cookies."
954
  msgstr ""
955
 
956
- #: admin/partials/settings.php:333, admin/partials/templates/tmpl-cookies.php:111
957
  msgid "Url with instructions on how to opt out."
958
  msgstr ""
959
 
960
- #: admin/partials/settings.php:349
961
  msgid "E.g. Privacy Policy or Cookie Policy"
962
  msgstr ""
963
 
964
- #: admin/partials/settings.php:350
965
  msgid "Add consent"
966
  msgstr ""
967
 
968
- #: admin/partials/settings.php:355, admin/partials/templates/tmpl-consents.php:3
969
  msgid "Unregister this consent."
970
  msgstr ""
971
 
972
- #: admin/partials/settings.php:362, admin/partials/templates/tmpl-consents.php:10
973
  msgid "Policy Page"
974
  msgstr ""
975
 
976
- #: admin/partials/settings.php:363, admin/partials/settings.php:364, admin/partials/templates/tmpl-consents.php:11, admin/partials/templates/tmpl-consents.php:12
977
  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."
978
  msgstr ""
979
 
980
- #: admin/partials/settings.php:381, admin/partials/templates/tmpl-consents.php:29
981
  msgid "Long description"
982
  msgstr ""
983
 
984
- #: admin/partials/settings.php:382, admin/partials/settings.php:383, admin/partials/templates/tmpl-consents.php:30, admin/partials/templates/tmpl-consents.php:31
985
  msgid "This will show up at the privacy preferences center, under the name of the consent."
986
  msgstr ""
987
 
988
- #: admin/partials/settings.php:393, admin/partials/templates/tmpl-consents.php:41
989
  msgid "Short description"
990
  msgstr ""
991
 
992
- #: admin/partials/settings.php:394, admin/partials/settings.php:395, admin/partials/templates/tmpl-consents.php:42, admin/partials/templates/tmpl-consents.php:43
993
  msgid "This will show up at registration forms next to checkboxes."
994
  msgstr ""
995
 
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
+ #: admin/class-gdpr-admin.php:100, admin/class-gdpr-admin.php:113, admin/class-gdpr-admin.php:567
17
  msgid "GDPR"
18
  msgstr ""
19
 
105
  msgid "Please keep in mind the plugin might not work as intended until these settings are reviewed."
106
  msgstr ""
107
 
108
+ #: admin/class-gdpr-admin.php:568, includes/class-gdpr-activator.php:36
109
+ msgid "Your current PHP version (%1$s) is below the plugin required version of %2$s."
110
+ msgstr ""
111
+
112
+ #: admin/class-gdpr-admin.php:590
113
  msgid "Your %s page has been updated."
114
  msgstr ""
115
 
116
+ #: admin/class-gdpr-admin.php:592
117
  msgid "In case this was not a small typo fix, you must ask users for explicit consent again."
118
  msgstr ""
119
 
120
+ #: admin/class-gdpr-admin.php:601
121
  msgid "Ask for consent"
122
  msgstr ""
123
 
124
+ #: admin/class-gdpr-admin.php:610
125
  msgid "Ignore"
126
  msgstr ""
127
 
128
+ #: admin/class-gdpr-admin.php:625, admin/class-gdpr-admin.php:769, admin/class-gdpr-admin.php:845, public/class-gdpr-public.php:208, public/class-gdpr-public.php:318, public/class-gdpr-public.php:381
129
  msgid "We could not verify the the security token. Please try again."
130
  msgstr ""
131
 
132
+ #: admin/class-gdpr-admin.php:637
133
  msgid "One or more required fields are missing. Please try again."
134
  msgstr ""
135
 
136
+ #: admin/class-gdpr-admin.php:687
137
  msgid "Data breach notification has been initialized. An email confirmation has been sent to the website controller."
138
  msgstr ""
139
 
140
+ #: admin/class-gdpr-admin.php:751
141
  msgid "ERROR"
142
  msgstr ""
143
 
144
+ #: admin/class-gdpr-admin.php:753
145
  msgid "is a required consent"
146
  msgstr ""
147
 
148
  #. translators: 1: The name of the policy that was updated.
149
+ #: admin/class-gdpr-admin.php:789
150
  msgid "%1$s has been updated. Removing the %1$s consent and requesting new consent."
151
  msgstr ""
152
 
153
+ #: admin/class-gdpr-admin.php:868, includes/class-gdpr-help.php:184, public/partials/privacy-preferences-modal.php:32, public/partials/privacy-preferences-modal.php:65
154
  msgid "Consent Management"
155
  msgstr ""
156
 
157
+ #: admin/class-gdpr-admin.php:905
158
  msgid "Profile Updated. These are the user consents after the save:"
159
  msgstr ""
160
 
161
+ #: admin/class-gdpr-admin.php:984, admin/partials/settings.php:347
162
  msgid "Consents"
163
  msgstr ""
164
 
523
  msgid "User request expired. Removing %s user_meta."
524
  msgstr ""
525
 
526
+ #: includes/class-gdpr.php:305
527
  msgid "User registered to the site."
528
  msgstr ""
529
 
530
  #. translators: Name of consent
531
+ #: includes/class-gdpr.php:312
532
  msgid "User gave explicit consent to %s"
533
  msgstr ""
534
 
777
  msgid "This section handles the privacy bar and some of the privacy preferences window."
778
  msgstr ""
779
 
780
+ #: admin/partials/settings.php:94
 
 
 
 
 
 
 
 
781
  msgid "Enable the Privacy Bar"
782
  msgstr ""
783
 
784
+ #: admin/partials/settings.php:98
785
  msgid "Toggles the Privacy Bar On/Off."
786
  msgstr ""
787
 
788
+ #: admin/partials/settings.php:103
789
  msgid "Display the cookie categories in the privacy bar"
790
  msgstr ""
791
 
792
+ #: admin/partials/settings.php:112
793
  msgid "Privacy Bar Content"
794
  msgstr ""
795
 
796
+ #: admin/partials/settings.php:113, admin/partials/settings.php:114
797
  msgid "Try to add an brief explanation of how you use your user data in a few lines. This will show up in the privacy bar."
798
  msgstr ""
799
 
800
+ #: admin/partials/settings.php:125
801
  msgid "Privacy Excerpt"
802
  msgstr ""
803
 
804
+ #: admin/partials/settings.php:126, admin/partials/settings.php:127
805
  msgid "This show up in the privacy preferences window."
806
  msgstr ""
807
 
808
+ #: admin/partials/settings.php:134
809
  msgid "This will appear in the consent section of the privacy preference window."
810
  msgstr ""
811
 
812
+ #: admin/partials/settings.php:140
813
  msgid "Request Forms reCAPTCHA"
814
  msgstr ""
815
 
816
+ #: admin/partials/settings.php:141
817
  msgid "To prevent spam attacks, you have the option to enable reCAPTCHA. Configure below your keys to make it work with our request forms."
818
  msgstr ""
819
 
820
+ #: admin/partials/settings.php:146
821
  msgid "You can find the necessary information %s."
822
  msgstr ""
823
 
824
+ #: admin/partials/settings.php:147
825
  msgid "here"
826
  msgstr ""
827
 
828
+ #: admin/partials/settings.php:155
829
  msgid "Enable reCAPTCHA"
830
  msgstr ""
831
 
832
+ #: admin/partials/settings.php:164
833
  msgid "Site Key"
834
  msgstr ""
835
 
836
+ #: admin/partials/settings.php:173
837
  msgid "Secret Key"
838
  msgstr ""
839
 
840
+ #: admin/partials/settings.php:184
841
  msgid "WooCommerce"
842
  msgstr ""
843
 
844
+ #: admin/partials/settings.php:189
845
  msgid "Add consent checkboxes to the registration page"
846
  msgstr ""
847
 
848
+ #: admin/partials/settings.php:198
849
  msgid "Add consent checkboxes to the checkout registration form"
850
  msgstr ""
851
 
852
+ #: admin/partials/settings.php:210
853
  msgid "Cookies"
854
  msgstr ""
855
 
856
+ #: admin/partials/settings.php:211
857
  msgid "Category name"
858
  msgstr ""
859
 
860
+ #: admin/partials/settings.php:212
861
  msgid "Add cookie category"
862
  msgstr ""
863
 
864
+ #: admin/partials/settings.php:216, admin/partials/templates/tmpl-cookies.php:3
865
  msgid "Remove this tab."
866
  msgstr ""
867
 
868
+ #: admin/partials/settings.php:222, admin/partials/templates/tmpl-cookies.php:9
869
  msgid "Category Name"
870
  msgstr ""
871
 
872
+ #: admin/partials/settings.php:223, admin/partials/settings.php:224
873
  msgid "Change this value if you want to name it something different."
874
  msgstr ""
875
 
876
+ #: admin/partials/settings.php:236, admin/partials/templates/tmpl-cookies.php:23
877
  msgid "Status"
878
  msgstr ""
879
 
880
+ #: admin/partials/settings.php:237, admin/partials/settings.php:238
881
  msgid "Required cookies are cookies that cannot be opted out of and need to be created for the site to function properly. The ON status means that the cookie preference for this category will be enabled by default. The OFF status means the user needs to manually turn these cookies on to opt into these cookies."
882
  msgstr ""
883
 
884
+ #: admin/partials/settings.php:246, public/partials/privacy-preferences-modal.php:75, public/partials/privacy-preferences-modal.php:122, admin/partials/templates/tmpl-cookies.php:33
885
  msgid "Required"
886
  msgstr ""
887
 
888
+ #: admin/partials/settings.php:247, admin/partials/templates/tmpl-cookies.php:34
889
  msgid "ON"
890
  msgstr ""
891
 
892
+ #: admin/partials/settings.php:248, admin/partials/templates/tmpl-cookies.php:35
893
  msgid "OFF"
894
  msgstr ""
895
 
896
+ #: admin/partials/settings.php:255, admin/partials/settings.php:308, admin/partials/templates/tmpl-cookies.php:42, admin/partials/templates/tmpl-cookies.php:99
897
  msgid "Cookies used"
898
  msgstr ""
899
 
900
+ #: admin/partials/settings.php:256, admin/partials/settings.php:257, admin/partials/templates/tmpl-cookies.php:43, admin/partials/templates/tmpl-cookies.php:44
901
  msgid "A comma-separated list of cookies that your site is using that fit this category."
902
  msgstr ""
903
 
904
+ #: admin/partials/settings.php:265, admin/partials/templates/tmpl-cookies.php:52, admin/partials/templates/tmpl-cookies.php:103
905
  msgid "Comma separated list."
906
  msgstr ""
907
 
908
+ #: admin/partials/settings.php:271, admin/partials/templates/tmpl-cookies.php:58
909
  msgid "How are these used"
910
  msgstr ""
911
 
912
+ #: admin/partials/settings.php:272, admin/partials/settings.php:273
913
  msgid "A brief explanation of why you are requesting to use these cookies, what they are for, and how you process them."
914
  msgstr ""
915
 
916
+ #: admin/partials/settings.php:283, admin/partials/templates/tmpl-cookies.php:70
917
  msgid "Third party domain"
918
  msgstr ""
919
 
920
+ #: admin/partials/settings.php:284, admin/partials/settings.php:285
921
  msgid "E.g. facebook.com"
922
  msgstr ""
923
 
924
+ #: admin/partials/settings.php:291, admin/partials/templates/tmpl-cookies.php:78
925
  msgid "domain.com"
926
  msgstr ""
927
 
928
+ #: admin/partials/settings.php:292, admin/partials/templates/tmpl-cookies.php:79
929
  msgid "Add"
930
  msgstr ""
931
 
932
+ #: admin/partials/settings.php:294, admin/partials/templates/tmpl-cookies.php:81
933
  msgid "Cookies that are set by a third party, like facebook.com."
934
  msgstr ""
935
 
936
+ #: admin/partials/settings.php:302, admin/partials/templates/tmpl-cookies.php:94
937
  msgid "Remove this domain."
938
  msgstr ""
939
 
940
+ #: admin/partials/settings.php:309, admin/partials/settings.php:310
941
  msgid "A comma separated list of cookies that your site is using from this third-party provider."
942
  msgstr ""
943
 
944
+ #: admin/partials/settings.php:322
945
  msgid "Opt Out Link"
946
  msgstr ""
947
 
948
+ #: admin/partials/settings.php:323, admin/partials/settings.php:324
949
  msgid "Add a link with the third-party instructions on how to opt out of their cookies."
950
  msgstr ""
951
 
952
+ #: admin/partials/settings.php:332, admin/partials/templates/tmpl-cookies.php:111
953
  msgid "Url with instructions on how to opt out."
954
  msgstr ""
955
 
956
+ #: admin/partials/settings.php:348
957
  msgid "E.g. Privacy Policy or Cookie Policy"
958
  msgstr ""
959
 
960
+ #: admin/partials/settings.php:349
961
  msgid "Add consent"
962
  msgstr ""
963
 
964
+ #: admin/partials/settings.php:354, admin/partials/templates/tmpl-consents.php:3
965
  msgid "Unregister this consent."
966
  msgstr ""
967
 
968
+ #: admin/partials/settings.php:361, admin/partials/templates/tmpl-consents.php:10
969
  msgid "Policy Page"
970
  msgstr ""
971
 
972
+ #: admin/partials/settings.php:362, admin/partials/settings.php:363, admin/partials/templates/tmpl-consents.php:11, admin/partials/templates/tmpl-consents.php:12
973
  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."
974
  msgstr ""
975
 
976
+ #: admin/partials/settings.php:380, admin/partials/templates/tmpl-consents.php:29
977
  msgid "Long description"
978
  msgstr ""
979
 
980
+ #: admin/partials/settings.php:381, admin/partials/settings.php:382, admin/partials/templates/tmpl-consents.php:30, admin/partials/templates/tmpl-consents.php:31
981
  msgid "This will show up at the privacy preferences center, under the name of the consent."
982
  msgstr ""
983
 
984
+ #: admin/partials/settings.php:392, admin/partials/templates/tmpl-consents.php:41
985
  msgid "Short description"
986
  msgstr ""
987
 
988
+ #: admin/partials/settings.php:393, admin/partials/settings.php:394, admin/partials/templates/tmpl-consents.php:42, admin/partials/templates/tmpl-consents.php:43
989
  msgid "This will show up at registration forms next to checkboxes."
990
  msgstr ""
991
 
public/class-gdpr-public.php CHANGED
@@ -287,7 +287,7 @@ class GDPR_Public {
287
  $user = wp_get_current_user();
288
  $user_consents = get_user_meta( $user->ID, 'gdpr_consents' );
289
 
290
- if ( empty( $user_consents ) || ! is_array( $user_consents ) ) {
291
  return;
292
  }
293
 
287
  $user = wp_get_current_user();
288
  $user_consents = get_user_meta( $user->ID, 'gdpr_consents' );
289
 
290
+ if ( ! is_array( $user_consents ) ) {
291
  return;
292
  }
293