Plugin Directory


Ignore:
Timestamp:
02/08/2022 08:03:10 AM (4 years ago)
Author:
MooveAgency
Message:

Version 4.7.5 released

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gdpr-cookie-compliance/trunk/moove-gdpr.php

    r2672150 r2674805  
    55 *  Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
    66 *  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.4
     7 *  Version: 4.7.5
    88 *  Author: Moove Agency
    99 *  Domain Path: /languages
     
    1919} // Exit if accessed directly
    2020
    21 define( 'MOOVE_GDPR_VERSION', '4.7.4' );
     21define( 'MOOVE_GDPR_VERSION', '4.7.5' );
    2222if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
    2323    define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
     
    4242            $gdpr_default_content = new Moove_GDPR_Content();
    4343            $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 );
    4545
    4646            if ( $gdpr_key && isset( $gdpr_key['key'] ) && isset( $gdpr_key['activation'] ) ) :
     
    4848                $validate_license       = $license_manager->validate_license( $gdpr_key['key'], 'gdpr', 'deactivate' );
    4949                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                    );
    6757                endif;
    6858            endif;
Note: See TracChangeset for help on using the changeset viewer.