GDPR Cookie Compliance - Version 4.5.9

Version Description

Download this release

Release Info

Developer MooveAgency
Plugin Icon 128x128 GDPR Cookie Compliance
Version 4.5.9
Comparing to
See all releases

Code changes from version 4.5.8 to 4.5.9

Files changed (4) hide show
  1. class-moove-gdpr-actions.php +27 -1
  2. gdpr-functions.php +13 -0
  3. moove-gdpr.php +2 -2
  4. readme.txt +13 -7
class-moove-gdpr-actions.php CHANGED
@@ -81,6 +81,32 @@ class Moove_GDPR_Actions {
81
  <style>.gdpr-plugin-star-rating{display:inline-block;color:#ffb900;position:relative;top:3px}.gdpr-plugin-star-rating svg,.gdpr-plugin-star-rating svg:hover{fill:#ffb900}.gdpr-plugin-star-rating svg:hover~svg{fill:none}</style>
82
  <?php
83
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  }
85
 
86
  /**
@@ -375,7 +401,7 @@ class Moove_GDPR_Actions {
375
  $option_key = $gdpr_default_content->moove_gdpr_get_key_name();
376
  $gdpr_key = function_exists( 'get_site_option' ) ? get_site_option( $option_key ) : get_option( $option_key );
377
  ?>
378
- <?php if ( isset( $gdpr_key['deactivation'] ) || $gdpr_key['activation'] ) : ?>
379
  <p><strong><a href="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>?page=moove-gdpr&amp;tab=licence" class="gdpr_admin_link">Activate your licence</a> or <a href="https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/" class="gdpr_admin_link" target="_blank">buy a new licence here</a></strong></p>
380
  <?php else : ?>
381
  <p><strong>Do you have a licence key? <br />Insert your license key to the "<a href="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>?page=moove-gdpr&amp;tab=licence" class="gdpr_admin_link">Licence Manager</a>" and activate it.</strong></p>
81
  <style>.gdpr-plugin-star-rating{display:inline-block;color:#ffb900;position:relative;top:3px}.gdpr-plugin-star-rating svg,.gdpr-plugin-star-rating svg:hover{fill:#ffb900}.gdpr-plugin-star-rating svg:hover~svg{fill:none}</style>
82
  <?php
83
  });
84
+
85
+ add_action( 'gdpr_cookie_custom_attributes', array( &$this, 'gdpr_cc_multisite_subdomain_url' ), 99, 1);
86
+ }
87
+
88
+ /**
89
+ * Using main domain for WP MultiSite - Subdomain installs
90
+ * @param string $attr Cookie attributes.
91
+ */
92
+ public static function gdpr_cc_multisite_subdomain_url( $attr ) {
93
+ $gdpr_default_content = new Moove_GDPR_Content();
94
+ $option_name = $gdpr_default_content->moove_gdpr_get_option_name();
95
+ $gdpr_options = get_option( $option_name );
96
+
97
+ if ( isset( $gdpr_options['moove_gdpr_sync_user_consent'] ) && intval( $gdpr_options['moove_gdpr_sync_user_consent'] ) ) :
98
+ if ( function_exists( 'is_multisite' ) && is_multisite() && defined( 'SUBDOMAIN_INSTALL' ) && SUBDOMAIN_INSTALL === true ) :
99
+ $site_url = network_site_url();
100
+ $current_site_url = get_bloginfo( 'url' );
101
+ $p_url = parse_url( $site_url );
102
+ $domain = $p_url && isset( $p_url['host'] ) && $p_url['host'] ? $p_url['host'] : false;
103
+ if ( $domain && strpos( $current_site_url, $domain ) !== false && strpos( 'domain=', $attr ) === false ) :
104
+ $domain = apply_filters( 'gdpr_cc_multisite_subdomain_main_domain', $domain );
105
+ $attr .= 'domain=.' . $domain . ';';
106
+ endif;
107
+ endif;
108
+ endif;
109
+ return $attr;
110
  }
111
 
112
  /**
401
  $option_key = $gdpr_default_content->moove_gdpr_get_key_name();
402
  $gdpr_key = function_exists( 'get_site_option' ) ? get_site_option( $option_key ) : get_option( $option_key );
403
  ?>
404
+ <?php if ( $gdpr_key && isset( $gdpr_key['deactivation'] ) ) : ?>
405
  <p><strong><a href="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>?page=moove-gdpr&amp;tab=licence" class="gdpr_admin_link">Activate your licence</a> or <a href="https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/" class="gdpr_admin_link" target="_blank">buy a new licence here</a></strong></p>
406
  <?php else : ?>
407
  <p><strong>Do you have a licence key? <br />Insert your license key to the "<a href="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>?page=moove-gdpr&amp;tab=licence" class="gdpr_admin_link">Licence Manager</a>" and activate it.</strong></p>
gdpr-functions.php CHANGED
@@ -519,3 +519,16 @@ if ( ! function_exists( 'gdpr_get_display_language_by_locale' ) ) :
519
  return isset( $language_codes[ $_locale ] ) ? $language_codes[ $_locale ] . ' [' . $locale . ']' : $locale;
520
  }
521
  endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  return isset( $language_codes[ $_locale ] ) ? $language_codes[ $_locale ] . ' [' . $locale . ']' : $locale;
520
  }
521
  endif;
522
+
523
+ add_action( 'gdpr_modal_base_module', 'gdpr_copyscape_cc_remove_hidden_elements', 10, 1 );
524
+ add_action( 'gdpr_infobar_base_module', 'gdpr_copyscape_cc_remove_hidden_elements', 10, 1 );
525
+ add_action( 'gdpr_branding_styles_module', 'gdpr_copyscape_cc_remove_hidden_elements', 10, 1 );
526
+ add_action( 'gdpr_floating_button_module', 'gdpr_copyscape_cc_remove_hidden_elements', 10, 1 );
527
+
528
+ /**
529
+ * Disable showing HTML content if ?justtext=1 query parameter is part of the URL
530
+ * @param string $modal_html Modal HTML.
531
+ */
532
+ function gdpr_copyscape_cc_remove_hidden_elements( $modal_html ) {
533
+ return isset( $_GET['justtext'] ) && sanitize_text_field( wp_unslash( $_GET['justtext'] ) ) ? '' : $modal_html;
534
+ };
moove-gdpr.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: GDPR Cookie Compliance (CCPA, PIPEDA ready)
5
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
6
  * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, PIPEDA, CCPA, AAP, LGPD and others.
7
- * Version: 4.5.8
8
  * Author: Moove Agency
9
  * Domain Path: /languages
10
  * Author URI: https://www.mooveagency.com
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  exit;
19
  } // Exit if accessed directly
20
 
21
- define( 'MOOVE_GDPR_VERSION', '4.5.8' );
22
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
23
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
24
  endif;
4
  * Plugin Name: GDPR Cookie Compliance (CCPA, PIPEDA ready)
5
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
6
  * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, PIPEDA, CCPA, AAP, LGPD and others.
7
+ * Version: 4.5.9
8
  * Author: Moove Agency
9
  * Domain Path: /languages
10
  * Author URI: https://www.mooveagency.com
18
  exit;
19
  } // Exit if accessed directly
20
 
21
+ define( 'MOOVE_GDPR_VERSION', '4.5.9' );
22
  if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
23
  define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
24
  endif;
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === GDPR Cookie Compliance (CCPA ready) ===
2
  Contributors: MooveAgency
3
  Donate link: https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/
4
- Tags: GDPR, CCPA, compliance, cookie law, cookie consent
5
- Stable tag: 4.5.8
6
  Requires at least: 4.5
7
  Tested up to: 5.8
8
  Requires PHP: 5.6 or higher
@@ -41,7 +41,7 @@ Cookie Compliance for GDPR & CCPA, European and other cookie law and consent not
41
 
42
  * **Cookie wall / Full-screen layout** - if enabled, the Cookie Consent Banner will be display in a full screen mode, and force users to either accept or reject cookies before they can see your content
43
  * **Export & import settings** - transfer your custom settings between sites with ease
44
- * **WordPress Multisite extension** - you can manage the plugin settings globally, and clone them from one site to another within your multi-site setup
45
  * **Accept on Scroll / Hide timer** - allow users to accept cookies by scrolling down the page OR by setting a timer (ie. Hide banner after 5 seconds)
46
  * **Renew Consent** - ask users to renew their consent if there is a change in privacy or cookie policy on your site
47
  * **Geo-location** - if enabled, the Cookie Consent Banner will only be shown to visitors from the European Union or selected countries (ie. Canada, United States etc.)
@@ -56,7 +56,7 @@ Cookie Compliance for GDPR & CCPA, European and other cookie law and consent not
56
  * **Fast Premium Support** from our friendly team
57
  * **12 months** of premium updates included
58
 
59
- [Buy GDPR Premium Add-on here](https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/)
60
 
61
 
62
  ### Demo Video
@@ -177,9 +177,11 @@ Yes. Once you setup the plugin, you should delete the scripts you uploaded to th
177
  * You will find the list of popular hooks in the plugin setttings: CMS > GDPR Cookie Compliance > Help, Hooks, Filters & Shortcodes
178
  * You can also find the list of all [pre-defined advanced hooks here:](https://wordpress.org/support/topic/conditional-php-script/)
179
 
180
- = Does the plugin support subdomains? =
181
- * Unfortunately not, subdomains are treated as separate domains by browsers and the plugin is unable to alter cookies stored by another domain.
182
- * If your multisite setup uses subdomain version, each subsite will be recognised as a separate domain by browsers and will create separate cookies for each subdomain.
 
 
183
 
184
  = Does this plugin block all cookies? =
185
  This plugin only restricts cookies for scripts that you have setup in the Settings. If you want to block all cookies, you have to add all scripts that use cookies into the Settings of this plugin.
@@ -266,6 +268,10 @@ The Brazilian General Data Protection Law (“Lei Geral de Proteção de Dados
266
  39. GDPR Cookie Compliance - Front-end - Cookie Shortcode [Premium]
267
 
268
  == Changelog ==
 
 
 
 
269
  = 4.5.8: 26 July 2021 =
270
  * Fixed GDPR in Gutenberg Widget Editor
271
 
1
  === GDPR Cookie Compliance (CCPA ready) ===
2
  Contributors: MooveAgency
3
  Donate link: https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/
4
+ Tags: GDPR, CCPA, cookie banner, cookie law, cookie consent
5
+ Stable tag: 4.5.9
6
  Requires at least: 4.5
7
  Tested up to: 5.8
8
  Requires PHP: 5.6 or higher
41
 
42
  * **Cookie wall / Full-screen layout** - if enabled, the Cookie Consent Banner will be display in a full screen mode, and force users to either accept or reject cookies before they can see your content
43
  * **Export & import settings** - transfer your custom settings between sites with ease
44
+ * **WordPress Multisite features** - you can manage the plugin settings globally, and clone them from one site to another within your multi-site setup. You can also sync users consent between individual subsites on your multisite network.
45
  * **Accept on Scroll / Hide timer** - allow users to accept cookies by scrolling down the page OR by setting a timer (ie. Hide banner after 5 seconds)
46
  * **Renew Consent** - ask users to renew their consent if there is a change in privacy or cookie policy on your site
47
  * **Geo-location** - if enabled, the Cookie Consent Banner will only be shown to visitors from the European Union or selected countries (ie. Canada, United States etc.)
56
  * **Fast Premium Support** from our friendly team
57
  * **12 months** of premium updates included
58
 
59
+ [Download Premium Add-on here](https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/)
60
 
61
 
62
  ### Demo Video
177
  * You will find the list of popular hooks in the plugin setttings: CMS > GDPR Cookie Compliance > Help, Hooks, Filters & Shortcodes
178
  * You can also find the list of all [pre-defined advanced hooks here:](https://wordpress.org/support/topic/conditional-php-script/)
179
 
180
+ = Does the plugin support subdomains or subfolders on multisite network? =
181
+ * Yes, the plugin supports subdomains on the same WordPress Multisite Network as part of our [Premium Add-on](https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/)
182
+ * We can sync users consent across your multisite network as long as your subsites are using the same domain and either folder or subdomain structure.
183
+ * For example, if user agrees to cookies on one subsite (example.com/one/ or one.example.com), then we can automatically sync their consent and cookies will be accepted on the other subsites too (example.com/two/ or two.example.com).
184
+ * There is only one exception where we cannot sync users consent between subsites and that's when you're using different domains (subdomains are fine). Browsers will treat each domain as separate entity and our plugin will be unable to alter cookies stored by the other domain. This is a security feature in browsers to prevent hacking.
185
 
186
  = Does this plugin block all cookies? =
187
  This plugin only restricts cookies for scripts that you have setup in the Settings. If you want to block all cookies, you have to add all scripts that use cookies into the Settings of this plugin.
268
  39. GDPR Cookie Compliance - Front-end - Cookie Shortcode [Premium]
269
 
270
  == Changelog ==
271
+ = 4.5.9: 1 September 2021 =
272
+ * copyscape auditing ?justtext=1 filter added
273
+ * WP Multisite subdomain cookie domain filter implemented
274
+
275
  = 4.5.8: 26 July 2021 =
276
  * Fixed GDPR in Gutenberg Widget Editor
277