WP GDPR Compliance - Version 2.0.5

Version Description

Release date: 15th November 2021 * Fixed notice.

Download this release

Release Info

Developer merlijnvanlent
Plugin Icon 128x128 WP GDPR Compliance
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

Files changed (3) hide show
  1. WordPress/Plugin.php +5 -1
  2. readme.txt +5 -1
  3. wp-gdpr-compliance.php +2 -2
WordPress/Plugin.php CHANGED
@@ -179,7 +179,11 @@ class Plugin {
179
  if( empty($url) ) return false;
180
 
181
  $parsedUrl = parse_url($url);
182
- $handle = sanitize_title_with_dashes(Plugin::PREFIX . '-' . $parsedUrl['hostname'] ?? Plugin::PREFIX . $parsedUrl['path'] ?? Plugin::PREFIX);
 
 
 
 
183
  wp_enqueue_style($handle, $url, $dependencies, Plugin::VERSION);
184
  return $handle;
185
  }
179
  if( empty($url) ) return false;
180
 
181
  $parsedUrl = parse_url($url);
182
+
183
+ $hostname = isset($parsedUrl['hostname']) ? $parsedUrl['hostname'] : '';
184
+ $path = isset($parsedUrl['$path']) ? $parsedUrl['path'] : '';
185
+
186
+ $handle = sanitize_title_with_dashes(Plugin::PREFIX . '-' . $hostname ?? Plugin::PREFIX . $path ?? Plugin::PREFIX);
187
  wp_enqueue_style($handle, $url, $dependencies, Plugin::VERSION);
188
  return $handle;
189
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protec
4
  Requires at least: 5.3
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -41,6 +41,10 @@ Cookie Information GDPR Consent Plugin supports Contact Form 7, Gravity Forms, W
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 2.0.4 =
45
  *Release date: 15th November 2021*
46
  * Improved the consent popup to also use the chosen font settings.
4
  Requires at least: 5.3
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
+ Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
41
 
42
  == Changelog ==
43
 
44
+ = 2.0.5 =
45
+ *Release date: 15th November 2021*
46
+ * Fixed notice.
47
+
48
  = 2.0.4 =
49
  *Release date: 15th November 2021*
50
  * Improved the consent popup to also use the chosen font settings.
wp-gdpr-compliance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: This plugin assists website and web shop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
6
  * Author: Cookie Information
7
  * Author URI: https://cookieinformation.com/
8
- * Version: 2.0.4
9
  * Text Domain: wp-gdpr-compliance
10
  * Domain Path: /Resources/languages
11
  * Requires at least: 5.3
@@ -33,7 +33,7 @@ spl_autoload_register(__NAMESPACE__ . '\\autoload');
33
  define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
34
  define('WPGDPRC_ROOT_FILE', __FILE__);
35
  define('WPGDPRC_FILE', plugin_basename(__FILE__));
36
- define('WPGDPRC_VERSION', '2.0.4');
37
  define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
38
 
39
  // register activation & deactivation hook to add/remove plugin specific database options
5
  * Description: This plugin assists website and web shop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
6
  * Author: Cookie Information
7
  * Author URI: https://cookieinformation.com/
8
+ * Version: 2.0.5
9
  * Text Domain: wp-gdpr-compliance
10
  * Domain Path: /Resources/languages
11
  * Requires at least: 5.3
33
  define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
34
  define('WPGDPRC_ROOT_FILE', __FILE__);
35
  define('WPGDPRC_FILE', plugin_basename(__FILE__));
36
+ define('WPGDPRC_VERSION', '2.0.5');
37
  define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
38
 
39
  // register activation & deactivation hook to add/remove plugin specific database options