Version Description
- Tweak: Remove WP Super Cache cookie on deactivation
- Tweak: Remove plugin version from the db on deactivation
Download this release
Release Info
Developer | dfactory |
Plugin | Cookie Notice by dFactory |
Version | 1.2.46 |
Comparing to | |
See all releases |
Code changes from version 1.2.45 to 1.2.46
- cookie-notice.php +26 -16
- readme.txt +9 -5
cookie-notice.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Cookie Notice
|
4 |
Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
|
5 |
-
Version: 1.2.
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
@@ -12,7 +12,7 @@ Text Domain: cookie-notice
|
|
12 |
Domain Path: /languages
|
13 |
|
14 |
Cookie Notice
|
15 |
-
Copyright (C) 2013-
|
16 |
|
17 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
18 |
|
@@ -34,7 +34,7 @@ include_once( plugin_dir_path( __FILE__ ) . 'includes/upgrade.php' );
|
|
34 |
* Cookie Notice class.
|
35 |
*
|
36 |
* @class Cookie_Notice
|
37 |
-
* @version 1.2.
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
@@ -77,7 +77,7 @@ class Cookie_Notice {
|
|
77 |
'translate' => true,
|
78 |
'deactivation_delete' => 'no'
|
79 |
),
|
80 |
-
'version' => '1.2.
|
81 |
);
|
82 |
private $positions = array();
|
83 |
private $styles = array();
|
@@ -107,7 +107,7 @@ class Cookie_Notice {
|
|
107 |
|
108 |
// actions
|
109 |
add_action( 'init', array( $this, 'register_shortcode' ) );
|
110 |
-
add_action( 'init', array( $this, '
|
111 |
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
112 |
add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
|
113 |
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
|
@@ -127,15 +127,6 @@ class Cookie_Notice {
|
|
127 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
|
128 |
}
|
129 |
|
130 |
-
/**
|
131 |
-
* Add WP Super Cache compatibility.
|
132 |
-
*
|
133 |
-
* @return void
|
134 |
-
*/
|
135 |
-
public function add_wpsc_cookie() {
|
136 |
-
do_action( 'wpsc_add_cookie', 'cookie_notice_accepted' );
|
137 |
-
}
|
138 |
-
|
139 |
/**
|
140 |
* Load plugin defaults
|
141 |
*/
|
@@ -963,7 +954,21 @@ class Cookie_Notice {
|
|
963 |
public function cookies_set() {
|
964 |
return apply_filters( 'cn_is_cookie_set', isset( $_COOKIE['cookie_notice_accepted'] ) );
|
965 |
}
|
966 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
967 |
/**
|
968 |
* Get default settings.
|
969 |
*/
|
@@ -1017,8 +1022,13 @@ class Cookie_Notice {
|
|
1017 |
* Deactivate the plugin.
|
1018 |
*/
|
1019 |
public function deactivation() {
|
1020 |
-
if ( $this->options['general']['deactivation_delete'] === 'yes' )
|
1021 |
delete_option( 'cookie_notice_options' );
|
|
|
|
|
|
|
|
|
|
|
1022 |
}
|
1023 |
|
1024 |
/**
|
2 |
/*
|
3 |
Plugin Name: Cookie Notice
|
4 |
Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
|
5 |
+
Version: 1.2.46
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
12 |
Domain Path: /languages
|
13 |
|
14 |
Cookie Notice
|
15 |
+
Copyright (C) 2013-2019, Digital Factory - info@digitalfactory.pl
|
16 |
|
17 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
18 |
|
34 |
* Cookie Notice class.
|
35 |
*
|
36 |
* @class Cookie_Notice
|
37 |
+
* @version 1.2.46
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
77 |
'translate' => true,
|
78 |
'deactivation_delete' => 'no'
|
79 |
),
|
80 |
+
'version' => '1.2.46'
|
81 |
);
|
82 |
private $positions = array();
|
83 |
private $styles = array();
|
107 |
|
108 |
// actions
|
109 |
add_action( 'init', array( $this, 'register_shortcode' ) );
|
110 |
+
add_action( 'init', array( $this, 'wpsc_add_cookie' ) );
|
111 |
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
112 |
add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
|
113 |
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
|
127 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
|
128 |
}
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
/**
|
131 |
* Load plugin defaults
|
132 |
*/
|
954 |
public function cookies_set() {
|
955 |
return apply_filters( 'cn_is_cookie_set', isset( $_COOKIE['cookie_notice_accepted'] ) );
|
956 |
}
|
957 |
+
|
958 |
+
/**
|
959 |
+
* Add WP Super Cache cookie.
|
960 |
+
*/
|
961 |
+
public function wpsc_add_cookie() {
|
962 |
+
do_action( 'wpsc_add_cookie', 'cookie_notice_accepted' );
|
963 |
+
}
|
964 |
+
|
965 |
+
/**
|
966 |
+
* Delete WP Super Cache cookie.
|
967 |
+
*/
|
968 |
+
public function wpsc_delete_cookie() {
|
969 |
+
do_action( 'wpsc_delete_cookie', 'cookie_notice_accepted' );
|
970 |
+
}
|
971 |
+
|
972 |
/**
|
973 |
* Get default settings.
|
974 |
*/
|
1022 |
* Deactivate the plugin.
|
1023 |
*/
|
1024 |
public function deactivation() {
|
1025 |
+
if ( $this->options['general']['deactivation_delete'] === 'yes' ) {
|
1026 |
delete_option( 'cookie_notice_options' );
|
1027 |
+
delete_option( 'cookie_notice_version' );
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
// remove WP Super Cache cookie
|
1031 |
+
$this->wpsc_delete_cookie();
|
1032 |
}
|
1033 |
|
1034 |
/**
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.dfactory.eu/
|
|
4 |
Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
|
5 |
Requires at least: 3.3
|
6 |
Requires PHP: 5.2.4
|
7 |
-
Tested up to:
|
8 |
-
Stable tag: 1.2.
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
@@ -66,6 +66,10 @@ No questions yet.
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
69 |
= 1.2.45 =
|
70 |
* Tweak: Improved WP Super Cache support
|
71 |
* Tweak: CSS container style issue and media query for mobile
|
@@ -258,6 +262,6 @@ Initial release
|
|
258 |
|
259 |
== Upgrade Notice ==
|
260 |
|
261 |
-
= 1.2.
|
262 |
-
* Tweak:
|
263 |
-
* Tweak:
|
4 |
Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
|
5 |
Requires at least: 3.3
|
6 |
Requires PHP: 5.2.4
|
7 |
+
Tested up to: 5.0.3
|
8 |
+
Stable tag: 1.2.46
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.2.46 =
|
70 |
+
* Tweak: Remove WP Super Cache cookie on deactivation
|
71 |
+
* Tweak: Remove plugin version from the db on deactivation
|
72 |
+
|
73 |
= 1.2.45 =
|
74 |
* Tweak: Improved WP Super Cache support
|
75 |
* Tweak: CSS container style issue and media query for mobile
|
262 |
|
263 |
== Upgrade Notice ==
|
264 |
|
265 |
+
= 1.2.46 =
|
266 |
+
* Tweak: Remove WP Super Cache cookie on deactivation
|
267 |
+
* Tweak: Remove plugin version from the db on deactivation
|