Cookie Notice by dFactory - Version 2.4.4

Version Description

  • Fix: Undefined index: status and subscription
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Cookie Notice by dFactory
Version 2.4.4
Comparing to
See all releases

Code changes from version 2.4.3 to 2.4.4

Files changed (2) hide show
  1. cookie-notice.php +7 -3
  2. readme.txt +6 -3
cookie-notice.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Cookie Notice & Compliance for GDPR / CCPA
4
  Description: Cookie Notice allows you to you elegantly inform users that your site uses cookies and helps you comply with GDPR, CCPA and other data privacy laws.
5
- Version: 2.4.3
6
  Author: Hu-manity.co
7
  Author URI: https://hu-manity.co/
8
  Plugin URI: https://cookie-compliance.co/
@@ -29,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) )
29
  * Cookie Notice class.
30
  *
31
  * @class Cookie_Notice
32
- * @version 2.4.3
33
  */
34
  class Cookie_Notice {
35
 
@@ -110,7 +110,7 @@ class Cookie_Notice {
110
  'status' => '',
111
  'subscription' => 'basic'
112
  ],
113
- 'version' => '2.4.3'
114
  ];
115
 
116
  /**
@@ -289,6 +289,10 @@ class Cookie_Notice {
289
  update_site_option( 'cookie_notice_status', $data );
290
  }
291
 
 
 
 
 
292
  // set status
293
  $this->status = $this->check_status( $data['status'] );
294
 
2
  /*
3
  Plugin Name: Cookie Notice & Compliance for GDPR / CCPA
4
  Description: Cookie Notice allows you to you elegantly inform users that your site uses cookies and helps you comply with GDPR, CCPA and other data privacy laws.
5
+ Version: 2.4.4
6
  Author: Hu-manity.co
7
  Author URI: https://hu-manity.co/
8
  Plugin URI: https://cookie-compliance.co/
29
  * Cookie Notice class.
30
  *
31
  * @class Cookie_Notice
32
+ * @version 2.4.4
33
  */
34
  class Cookie_Notice {
35
 
110
  'status' => '',
111
  'subscription' => 'basic'
112
  ],
113
+ 'version' => '2.4.4'
114
  ];
115
 
116
  /**
289
  update_site_option( 'cookie_notice_status', $data );
290
  }
291
 
292
+ // still invalid data?
293
+ if ( ! is_array( $data ) || empty( $data ) )
294
+ $data = $this->defaults['data'];
295
+
296
  // set status
297
  $this->status = $this->check_status( $data['status'] );
298
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, ccpa, cookies, consent, compliance
4
  Requires at least: 4.7
5
  Requires PHP: 5.4
6
  Tested up to: 6.1.1
7
- Stable tag: 2.4.3
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -121,6 +121,9 @@ Yes! The plugin + web appliaction version includes technical compliance features
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 2.4.3 =
125
  * Fix: Deprecated preg_replace() notice in PHP 8.1
126
 
@@ -441,5 +444,5 @@ Initial release
441
 
442
  == Upgrade Notice ==
443
 
444
- = 2.4.3 =
445
- * Fix: Deprecated preg_replace() notice in PHP 8.1
4
  Requires at least: 4.7
5
  Requires PHP: 5.4
6
  Tested up to: 6.1.1
7
+ Stable tag: 2.4.4
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.4.4 =
125
+ * Fix: Undefined index: status and subscription
126
+
127
  = 2.4.3 =
128
  * Fix: Deprecated preg_replace() notice in PHP 8.1
129
 
444
 
445
  == Upgrade Notice ==
446
 
447
+ = 2.4.4 =
448
+ * Fix: Undefined index: status and subscription