diff --git a/complianz-gpdr.php b/complianz-gpdr.php index fc8d2bc6..420fe7f0 100644 --- a/complianz-gpdr.php +++ b/complianz-gpdr.php @@ -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 @@ -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__ ); } diff --git a/readme.txt b/readme.txt index 1c9eb8b9..fdac3f45 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/upgrade.php b/upgrade.php index 99bbe78c..1a273d9d 100644 --- a/upgrade.php +++ b/upgrade.php @@ -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);