Cookie Law / GDPR Info - Version 2.0.9

Version Description

  • Fix - Removed cache flush helper functions
  • Tested ok with WordPress version 5.9
Download this release

Release Info

Developer webtoffee
Plugin Icon Cookie Law / GDPR Info
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

cookie-law-info.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
- * Version: 2.0.8
20
  * Author: WebToffee
21
  * Author URI: https://www.webtoffee.com/
22
  * License: GPLv3
@@ -70,7 +70,7 @@ define( 'CLI_ACTIVATION_ID', 'wtgdprcookieconsent' );
70
  * Currently plugin version.
71
  * Rename this for your plugin and update it as you release new versions.
72
  */
73
- define( 'CLI_VERSION', '2.0.8' );
74
 
75
  function wt_cookie_law_info_update_message( $data, $response ) {
76
  if ( isset( $data['upgrade_notice'] ) ) {
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
+ * Version: 2.0.9
20
  * Author: WebToffee
21
  * Author URI: https://www.webtoffee.com/
22
  * License: GPLv3
70
  * Currently plugin version.
71
  * Rename this for your plugin and update it as you release new versions.
72
  */
73
+ define( 'CLI_VERSION', '2.0.9' );
74
 
75
  function wt_cookie_law_info_update_message( $data, $response ) {
76
  if ( isset( $data['upgrade_notice'] ) ) {
includes/class-cookie-law-info.php CHANGED
@@ -78,7 +78,7 @@ class Cookie_Law_Info {
78
  }
79
  else
80
  {
81
- $this->version = '2.0.8';
82
  }
83
  $this->plugin_name = 'cookie-law-info';
84
 
@@ -233,8 +233,6 @@ class Cookie_Law_Info {
233
 
234
  $plugin_public->common_modules();
235
 
236
- //below hook's functions needs update
237
- $this->loader->add_action( 'init',$plugin_public,'other_plugin_compatibility');
238
  $this->loader->add_action( 'wp_footer',$plugin_public,'cookielawinfo_inject_cli_script');
239
  $this->loader->add_action('wp_head',$plugin_public,'include_user_accepted_cookielawinfo');
240
  $this->loader->add_action('wp_footer',$plugin_public,'include_user_accepted_cookielawinfo_in_body');
78
  }
79
  else
80
  {
81
+ $this->version = '2.0.9';
82
  }
83
  $this->plugin_name = 'cookie-law-info';
84
 
233
 
234
  $plugin_public->common_modules();
235
 
 
 
236
  $this->loader->add_action( 'wp_footer',$plugin_public,'cookielawinfo_inject_cli_script');
237
  $this->loader->add_action('wp_head',$plugin_public,'include_user_accepted_cookielawinfo');
238
  $this->loader->add_action('wp_footer',$plugin_public,'include_user_accepted_cookielawinfo_in_body');
public/class-cookie-law-info-public.php CHANGED
@@ -397,90 +397,6 @@ class Cookie_Law_Info_Public
397
  }
398
  return $bypass_blocking;
399
  }
400
- public function other_plugin_compatibility()
401
- {
402
- if (!is_admin()) {
403
- add_action('wp_head', array($this, 'other_plugin_clear_cache'));
404
- //cache clear===========
405
- if (isset($_GET['cli_action'])) {
406
- // Clear Litespeed cache
407
- if (class_exists('LiteSpeed_Cache_API') && method_exists('LiteSpeed_Cache_API', 'purge_all')) {
408
- LiteSpeed_Cache_API::purge_all();
409
- }
410
-
411
- // WP Super Cache
412
- if (function_exists('wp_cache_clear_cache')) {
413
- wp_cache_clear_cache();
414
- }
415
-
416
- // W3 Total Cache
417
- if (function_exists('w3tc_flush_all')) {
418
- w3tc_flush_all();
419
- }
420
-
421
- // Site ground
422
- if (class_exists('SG_CachePress_Supercacher') && method_exists('SG_CachePress_Supercacher', 'purge_cache')) {
423
- SG_CachePress_Supercacher::purge_cache(true);
424
- }
425
-
426
- // Endurance Cache
427
- if (class_exists('Endurance_Page_Cache') && method_exists('Endurance_Page_Cache', 'purge_all')) {
428
- $e = new Endurance_Page_Cache;
429
- $e->purge_all();
430
- }
431
-
432
- // WP Fastest Cache
433
- if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
434
- $GLOBALS['wp_fastest_cache']->deleteCache(true);
435
- }
436
- }
437
- //cache clear============
438
- }
439
- }
440
- public function other_plugin_clear_cache()
441
- {
442
-
443
- $cli_flush_cache = false;
444
- // Clear Litespeed cache
445
- if (class_exists('LiteSpeed_Cache_API') && method_exists('LiteSpeed_Cache_API', 'purge_all')) {
446
- $cli_flush_cache = true;
447
- }
448
-
449
- // WP Super Cache
450
- if (function_exists('wp_cache_clear_cache')) {
451
- $cli_flush_cache = true;
452
- }
453
-
454
- // W3 Total Cache
455
- if (function_exists('w3tc_flush_all')) {
456
- $cli_flush_cache = true;
457
- }
458
-
459
- // Site ground
460
- if (class_exists('SG_CachePress_Supercacher') && method_exists('SG_CachePress_Supercacher', 'purge_cache')) {
461
- $cli_flush_cache = true;
462
- }
463
-
464
- // Endurance Cache
465
- if (class_exists('Endurance_Page_Cache') && method_exists('Endurance_Page_Cache', 'purge_all')) {
466
- $cli_flush_cache = true;
467
- }
468
-
469
- // WP Fastest Cache
470
- if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
471
- $cli_flush_cache = true;
472
- }
473
-
474
- $cli_flush_cache = apply_filters('wt_cli_enable_cache_flush', $cli_flush_cache);
475
-
476
- if ($cli_flush_cache === true) :
477
- ?>
478
- <script type="text/javascript">
479
- var cli_flush_cache = true;
480
- </script>
481
- <?php
482
- endif;
483
- }
484
  /**
485
  * Check whether opted in CCPA or not
486
  *
397
  }
398
  return $bypass_blocking;
399
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  /**
401
  * Check whether opted in CCPA or not
402
  *
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: webtoffee, cookieyesdev
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: GDPR, CCPA, cookie notice, DSGVO, RGPD, LGPD, PIPEDA, POPIA, cookies , cookie law, cookie consent, Opt-in, cookie policy, privacy, compliance
5
  Requires at least: 4.4.0
6
- Tested up to: 5.8
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.8
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -191,6 +191,11 @@ For every update of the plugin, you will be notified of the installed plugins pa
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
194
  = 2.0.8 =
195
 
196
  * Fix - Compatibility issue with Wordpress 4.7.0 and below.
@@ -541,6 +546,7 @@ For every update of the plugin, you will be notified of the installed plugins pa
541
 
542
  == Upgrade Notice ==
543
 
544
- = 2.0.8 =
545
 
546
- * Fix - Compatibility issue with Wordpress 4.7.0 and below.
 
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: GDPR, CCPA, cookie notice, DSGVO, RGPD, LGPD, PIPEDA, POPIA, cookies , cookie law, cookie consent, Opt-in, cookie policy, privacy, compliance
5
  Requires at least: 4.4.0
6
+ Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.9
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
191
 
192
  == Changelog ==
193
 
194
+ = 2.0.9 =
195
+
196
+ * Fix - Removed cache flush helper functions
197
+ * Tested ok with WordPress version 5.9
198
+
199
  = 2.0.8 =
200
 
201
  * Fix - Compatibility issue with Wordpress 4.7.0 and below.
546
 
547
  == Upgrade Notice ==
548
 
549
+ = 2.0.9 =
550
 
551
+ * Fix - Removed cache flush helper functions
552
+ * Tested ok with WordPress version 5.9