Changeset 2674805 for gdpr-cookie-compliance/trunk/moove-gdpr.php
- Timestamp:
- 02/08/2022 08:03:10 AM (4 years ago)
- File:
-
- 1 edited
-
gdpr-cookie-compliance/trunk/moove-gdpr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gdpr-cookie-compliance/trunk/moove-gdpr.php
r2672150 r2674805 5 5 * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/ 6 6 * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, CCPA, PIPEDA, AAP, LGPD and others. 7 * Version: 4.7. 47 * Version: 4.7.5 8 8 * Author: Moove Agency 9 9 * Domain Path: /languages … … 19 19 } // Exit if accessed directly 20 20 21 define( 'MOOVE_GDPR_VERSION', '4.7. 4' );21 define( 'MOOVE_GDPR_VERSION', '4.7.5' ); 22 22 if ( ! defined( 'MOOVE_SHOP_URL' ) ) : 23 23 define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' ); … … 42 42 $gdpr_default_content = new Moove_GDPR_Content(); 43 43 $option_key = $gdpr_default_content->moove_gdpr_get_key_name(); 44 $gdpr_key = function_exists( 'get_site_option' ) ? get_site_option( $option_key ) : get_option( $option_key );44 $gdpr_key = $gdpr_default_content->gdpr_get_activation_key( $option_key ); 45 45 46 46 if ( $gdpr_key && isset( $gdpr_key['key'] ) && isset( $gdpr_key['activation'] ) ) : … … 48 48 $validate_license = $license_manager->validate_license( $gdpr_key['key'], 'gdpr', 'deactivate' ); 49 49 if ( $validate_license && isset( $validate_license['valid'] ) && true === $validate_license['valid'] ) : 50 if ( function_exists( 'update_site_option' ) ) : 51 update_site_option( 52 $option_key, 53 array( 54 'key' => $gdpr_key['key'], 55 'deactivation' => strtotime( 'now' ), 56 ) 57 ); 58 else : 59 update_option( 60 $option_key, 61 array( 62 'key' => $gdpr_key['key'], 63 'deactivation' => strtotime( 'now' ), 64 ) 65 ); 66 endif; 50 update_option( 51 $option_key, 52 array( 53 'key' => $gdpr_key['key'], 54 'deactivation' => strtotime( 'now' ), 55 ) 56 ); 67 57 endif; 68 58 endif;
Note: See TracChangeset
for help on using the changeset viewer.