PluginProbe ʕ •ᴥ•ʔ
Complianz – GDPR/CCPA Cookie Consent / 7.1.4
Complianz – GDPR/CCPA Cookie Consent v7.1.4
7.4.7 7.4.6 trunk 6.5.6 7.0.4 7.0.5 7.1.0 7.1.4 7.1.5 7.2.0 7.3.0 7.3.1 7.4.0 7.4.0.1 7.4.1 7.4.2 7.4.3 7.4.4 7.4.4.1 7.4.4.2 7.4.5 beta
complianz-gdpr / config / warnings.php
complianz-gdpr / config Last commit date
documents 1 year ago class-config.php 1 year ago countries.php 1 year ago index.php 1 year ago purpose.php 1 year ago warnings.php 1 year ago
warnings.php
286 lines
1 <?php
2
3
4 function cmplz_load_warning_types() {
5 return apply_filters('cmplz_warning_types' ,array(
6 'phpversion' => array(
7 'warning_condition' => 'NOT cmplz_has_recommended_phpversion',
8 'urgent' => __( 'Your PHP version is lower than the recommended PHP version. Some features are not available. Support for this PHP version will be dropped soon.', 'complianz-gdpr' ),
9 'url' => 'https://complianz.io/php-version/',
10 'plus_one' => true,
11 'include_in_progress' => true,
12 ),
13 'upgraded_to_7' => array(
14 'warning_condition' => 'cmplz_upgraded_to_current_version',
15 'open' => cmplz_sprintf(__( 'Complianz GDPR/CCPA %s. Learn more about our newest release.', 'complianz-gdpr' ),'7.0'),
16 'url' => 'https://complianz.io/meet-complianz-7/',
17 'admin_notice' => true,
18 ),
19 'migrate_js' => array(
20 'warning_condition' => 'get_value_enable_migrate_js==yes',
21 'open' => __( 'Migrate.js, which allowed a smooth upgrade to 6.0, has been deprecated.', 'complianz-gdpr' ),
22 'url' => 'https://complianz.io/migrate-js-deprecated/',
23 'admin_notice' => true,
24 ),
25 'enable_quebec_region' => array(
26 'warning_condition' => 'cmplz_requires_quebec_notice',
27 'open' => cmplz_quebec_notice(),
28 'url' => 'https://complianz.io/quebec-bill-64/',
29 'admin_notice' => true,
30 'dismissible' => true,
31 ),
32 // 'new_gutenberg_consentarea' => array(
33 // 'warning_condition' => 'cmplz_upgraded_to_current_version',
34 // 'open' => __( 'New: Gutenberg Block with consent capabilities.', 'complianz-gdpr' ),
35 // 'admin_notice' => false,
36 // 'plus_one' => true,
37 // 'url' => 'https://complianz.io/gutenberg-block-consent/'
38 // ),
39
40 'no-dnt' => array(
41 'success_conditions' => array(
42 'get_value_respect_dnt==yes'
43 ),
44 'completed' => __( 'Do Not Track and Global Privacy Control are respected.', 'complianz-gdpr' ),
45 // 'open' => __( 'Do Not Track and Global Privacy Control are not yet respected.', 'complianz-gdpr' ),
46 'url' => 'https://complianz.io/browser-privacy-controls/',
47 ),
48
49 'ajax_fallback' => array(
50 'warning_condition' =>'get_option_cmplz_ajax_fallback_active',
51 'urgent' => __( "Please check if your REST API is loading correctly. Your site currently is using the slower Ajax fallback method to load the settings.", 'complianz-gdpr' ),
52 'url' => 'https://complianz.io/instructions/how-to-debug-a-blank-settings-page-in-complianz/',
53 'plus_one' => true,
54 ),
55
56 'has_formal' => array(
57 'success_conditions' => array(
58 'NOT document->locale_has_formal_variant',
59 ),
60 'open' => __( 'You have currently selected an informal language, which will result in informal use of language on the legal documents. If you prefer the formal style, you can activate this in the general settings.', 'complianz-gdpr' ),
61 'include_in_progress' => true,
62 'url' =>'https://complianz.io/informal-language-in-legal-documents/'
63
64 ),
65 'google-fonts' => array(
66 'plus_one' => true,
67 'warning_condition' => 'banner_loader->show_google_fonts_notice',
68 'success_conditions' => array(
69 ),
70 'open' => __( 'Google Fonts requires your attention.', 'complianz-gdpr' ) ." ". __( 'We have added additional support and recommend reviewing your settings.', 'complianz-gdpr' )." " . cmplz_sprintf( __( 'Please read this %sarticle%s to read our position on self-hosting Google Fonts and Privacy by Design.', 'complianz-gdpr' ), '<a href="http://complianz.io/self-hosting-google-fonts-for-wordpress/" target="_blank">', '</a>'),
71 'include_in_progress' => true,
72 'url' => 'https://complianz.io/self-hosting-google-fonts-for-wordpress/',
73 ),
74
75 'cookies-changed' => array(
76 'plus_one' => true,
77 'warning_condition' => 'scan->cookies_changed',
78 'success_conditions' => array(
79 ),
80 'completed' => __( 'No cookie changes have been detected.', 'complianz-gdpr' ),
81 'open' => __( 'Cookie changes have been detected.', 'complianz-gdpr' ) . " " . __( 'Please review your cookies for changes.', 'complianz-gdpr' ),
82 'include_in_progress' => true,
83 ),
84 'no-cookie-scan' => array(
85 'success_conditions' => array(
86 'banner_loader->get_last_cookie_scan_date',
87 ),
88 'completed' => cmplz_sprintf( __( 'Last site scan completed on %s.', 'complianz-gdpr' ), COMPLIANZ::$banner_loader->get_last_cookie_scan_date() ),
89 'open' => __( 'No site scan has been completed yet.', 'complianz-gdpr' ),
90 'include_in_progress' => true,
91 'dismissible' => false,
92 ),
93
94 'all-pages-created' => array(
95 'warning_condition' => 'get_option_cmplz_wizard_completed_once',
96 'success_conditions' => array(
97 'documents_admin->all_required_pages_created',
98 ),
99 'completed' => __( 'All required pages have been generated.', 'complianz-gdpr' ),
100 'open' => __( 'Not all required pages have been generated.', 'complianz-gdpr' ),
101 'include_in_progress' => true,
102 ),
103
104 'hardening' => array(
105 'warning_condition' => 'admin->no_security_plugin_active',
106 'open' => __( "Harden your website and quickly detect vulnerabilities with Really Simple Security", 'complianz-gdpr' ),
107 'include_in_progress' => true,
108 'url' => '#tools/security'
109 ),
110
111 'ga-needs-configuring' => array(
112 'warning_condition' => 'banner_loader->uses_google_analytics',
113 'success_conditions' => array(
114 'banner_loader->analytics_configured',
115 ),
116 'open' => __( 'Google Analytics is being used, but is not configured in Complianz.', 'complianz-gdpr' ),
117 'include_in_progress' => true,
118 ),
119
120 'gtm-needs-configuring' => array(
121 'warning_condition' => 'banner_loader->uses_google_tagmanager',
122 'success_conditions' => array(
123 'banner_loader->tagmanager_configured',
124 ),
125 'open' => __( 'Google Tag Manager is being used, but is not configured in Complianz.', 'complianz-gdpr' ),
126 'include_in_progress' => true,
127 ),
128
129 'matomo-needs-configuring' => array(
130 'warning_condition' => 'banner_loader->uses_matomo',
131 'success_conditions' => array(
132 'banner_loader->matomo_configured',
133 ),
134 'open' => __( 'Matomo is being used, but is not configured in Complianz.', 'complianz-gdpr' ),
135 'include_in_progress' => true,
136 ),
137 'docs-need-updating' => array(
138 'success_conditions' => array(
139 'NOT document->documents_need_updating'
140 ),
141 'open' => __( 'Your documents have not been updated in the past 12 months. Run the wizard to check your settings.', 'complianz-gdpr' ),
142 'include_in_progress' => true,
143 ),
144 'cookies-incomplete' => array(
145 'warning_condition' => 'NOT banner_loader->use_cdb_api',
146 'success_conditions' => array(
147 'NOT sync->has_empty_cookie_descriptions',
148 ),
149 'open' => __( 'You have cookies with incomplete descriptions.', 'complianz-gdpr' ) . " "
150 . __( 'Enable the cookiedatabase.org API for automatic descriptions, or add these manually.', 'complianz-gdpr' ),
151 'include_in_progress' => true,
152 'url' => '#wizard/cookie-descriptions'
153 ),
154
155 'double-stats' => array(
156 'success_conditions' => array(
157 'NOT get_option_cmplz_double_stats',
158 ),
159 'warning_condition' => 'cmplz_uses_statistics',
160 'open' => __( 'You have a duplicate implementation of your statistics tool on your site.', 'complianz-gdpr' ) .
161 __( 'After the issue has been resolved, please re-run a scan to clear this message.', 'complianz-gdpr' ),
162 'include_in_progress' => true,
163 'dismissible' => true,
164 'url' => 'https://complianz.io/duplicate-implementation-of-analytics/',
165 ),
166
167 'console-errors' => array(
168 'warning_condition' => 'banner_loader->site_needs_cookie_warning',
169 'success_conditions' => array(
170 'NOT cmplz_get_console_errors',
171 ),
172 'open' => __( 'JavaScript errors are detected on the front-end of your site. This may break the consent banner functionality.', 'complianz-gdpr' )
173 . '<br />'.__("Last error in the console:", "complianz-gdpr")
174 .'<div style="color:red">'
175 . cmplz_get_console_errors()
176 .'</div>',
177 'include_in_progress' => true,
178 'url' => 'https://complianz.io/cookie-banner-does-not-appear/',
179 ),
180
181 'cookie-banner-enabled' => array(
182 'success_conditions' => array(
183 'cmplz_cookiebanner_should_load(true)',
184 ),
185 'completed' => __( 'Your site requires a consent banner, which has been enabled.', 'complianz-gdpr' ),
186 'urgent' => __( 'Your site is not configured to show a consent banner at the moment.', 'complianz-gdpr' ),
187 'include_in_progress' => true,
188 'dismissible' => true,
189 'url' => 'https://complianz.io/cookie-banner-does-not-appear/'
190 ),
191
192 'pretty-permalinks-error' => array(
193 'success_conditions' => array(
194 'get_option_permalink_structure',
195 ),
196 'plus_one' => true,
197 'urgent' => __( 'Pretty permalinks are not enabled on your site. This can cause issues with the REST API, used by Complianz.', 'complianz-gdpr' ),
198 'include_in_progress' => true,
199 'dismissible' => false,
200 'url' => admin_url('options-permalink.php'),
201 ),
202 'uploads-folder-writable' => array(
203 'success_conditions' => array(
204 'cmplz_uploads_folder_writable',
205 ),
206 'plus_one' => true,
207 'urgent' => __( 'Your uploads folder is not writable. Complianz needs this folder to save the consent banner CSS.', 'complianz-gdpr' ),
208 'include_in_progress' => true,
209 'dismissible' => false,
210 'url' => 'https://complianz.io/folder-permissions/'
211 ),
212 'custom-google-maps' => array(
213 'warning_condition' => 'cmplz_uses_google_maps',
214 'success_conditions' => array(
215 'cmplz_google_maps_integration_enabled',
216 ),
217 'plus_one' => false,
218 'open' => __( 'We see you have enabled Google Maps as a service, but we can\'t find an integration. You can integrate manually if needed.', 'complianz-gdpr' ),
219 'include_in_progress' => true,
220 'url' => 'https://complianz.io/custom-google-maps-integration/',
221 ),
222
223 'other-cookie-plugins' => array(
224 'warning_condition' => 'cmplz_detected_cookie_plugin',
225 'plus_one' => true,
226 'urgent' => cmplz_sprintf(__( 'We have detected the %s plugin on your website.', 'complianz-gdpr' ),cmplz_detected_cookie_plugin(true)).'&nbsp;'.__( 'As Complianz handles all the functionality this plugin provides, you should disable this plugin to prevent unexpected behaviour.', 'complianz-gdpr' ),
227 'include_in_progress' => true,
228 'dismissible' => false,
229 ),
230
231 'advertising-enabled' => array(
232 'warning_condition' => 'get_value_uses_ad_cookies==yes',
233 'premium' => __( 'Are you showing ads on your site? Consider implementing TCF.', 'complianz-gdpr' ),
234 'include_in_progress' => false,
235 'dismissible' => false,
236 'url' => 'https://complianz.io/implementing-tcf-on-your-website/',
237 ),
238
239 'sync-privacy-statement' => array(
240 'premium' => __( 'Create a Privacy Statement and other Legal Documents with Complianz.', 'complianz-gdpr' ),
241 'include_in_progress' => false,
242 'dismissible' => false,
243 'url' => 'https://complianz.io/pricing/?src=cmplz-plugin',
244 ),
245
246 'bf-notice2023' => array(
247 'warning_condition' => 'admin->is_bf',
248 'plus_one' => true,
249 'premium' => __( "Black Friday sale! Get 40% Off Complianz GDPR/CCPA premium!", 'complianz-gdpr' ),
250 'include_in_progress' => false,
251 'url' => 'https://complianz.io/pricing'
252 ),
253
254 'ecommerce-legal' => array(
255 'warning_condition' => 'cmplz_ecommerce_legal',
256 'premium' => __( 'Legal compliance for webshops.', 'complianz-gdpr' ),
257 'include_in_progress' => false,
258 'dismissible' => false,
259 'url' => 'https://complianz.io/legal-compliance-for-ecommerce/',
260 ),
261
262 'configure-tag-manager' => array(
263 'warning_condition' => 'cmplz_uses_google_tagmanager_or_analytics',
264 'premium' => __( 'Learn more about Google Consent Mode V2.', 'complianz-gdpr' ),
265 'include_in_progress' => false,
266 'dismissible' => false,
267 'url' => 'https://complianz.io/consent-mode-for-7-0/'
268 ),
269
270 'targeting-multiple-regions' => array(
271 'warning_condition' => 'cmplz_targeting_multiple_regions',
272 'premium' => __( 'Are you targeting multiple regions?', 'complianz-gdpr' ),
273 'include_in_progress' => false,
274 'dismissible' => false,
275 'url' => 'https://complianz.io/what-regions-do-i-target/',
276 ),
277 'install-burst' => array(
278 'warning_condition' => 'cmplz_show_install_burst_warning',
279 'open' => __( 'Statistics without Consent. Meet Burst Statistics from Complianz.', 'complianz-gdpr' ),
280 'include_in_progress' => false,
281 'url' => '#wizard/consent-statistics',
282 ),
283
284 ) );
285 }
286