Skip to content

Commit

Permalink
TCF setting upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rlankhorst committed Mar 4, 2024
1 parent ebdce74 commit b6bcbdc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions complianz-gpdr.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Complianz | GDPR/CCPA Cookie Consent
* Plugin URI: https://www.wordpress.org/plugins/complianz-gdpr
* Description: Complianz Privacy Suite for GDPR, CaCPA, DSVGO, AVG with a conditional cookie warning and customized cookie policy
* Version: 7.0.2
* Version: 7.0.3
* Requires at least: 5.9
* Requires PHP: 7.2
* Text Domain: complianz-gdpr
Expand Down Expand Up @@ -135,7 +135,7 @@ private function setup_constants() {
//for auto upgrade functionality
define( 'cmplz_plugin_free', plugin_basename( __FILE__ ) );
$debug = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '#'.time() : '';
define( 'cmplz_version', '7.0.2' . $debug );
define( 'cmplz_version', '7.0.3' . $debug );
define( 'cmplz_plugin_file', __FILE__ );
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires at least: 5.9
License: GPL2
Requires PHP: 7.2
Tested up to: 6.4
Stable tag: 7.0.2
Stable tag: 7.0.3

Configure your Cookie Banner, Cookie Consent and Cookie Policy with our Wizard and Cookie Scan.

Expand Down
8 changes: 8 additions & 0 deletions upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,14 @@ function cmplz_check_upgrade() {
update_option('cmplz_activation_time', strtotime('-1 week'), false);
}

//disable tcf for free users
if ( $prev_version && version_compare( $prev_version, '7.0.3', '<' ) ) {
$options = get_option( 'cmplz_options', [] );
if ( !defined('cmplz_premium') ) {
$options['uses_ad_cookies_personalized'] = 'no';
update_option( 'cmplz_options', $options );
}
}
#regenerate cookie policy snapshot.
update_option('cmplz_generate_new_cookiepolicy_snapshot', true, false);

Expand Down

0 comments on commit b6bcbdc

Please sign in to comment.