EU Cookie Law - Version 2.0.3

Version Description

  • 03.06.2015 =
  • Fixed cookie storing caused by wrong iso date
Download this release

Release Info

Developer Milmor
Plugin Icon 128x128 EU Cookie Law
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

Files changed (3) hide show
  1. class-frontend.php +6 -4
  2. eu-cookie-law.php +1 -1
  3. readme.txt +6 -3
class-frontend.php CHANGED
@@ -17,7 +17,7 @@ function peadig_eucookie_bar() {
17
  return;
18
  }
19
 
20
- if(!$_COOKIE['peadigCookie']){
21
  //for Cookie
22
  switch($options['length']){
23
  case "hours":
@@ -59,8 +59,10 @@ function peadig_eucookie_bar() {
59
  $('#pea_cook_btn').click(function() {
60
  var expire = new Date();
61
  expire.setDate(expire.getDate() + <?php echo $expireTimer?>);
62
- document.cookie = "peadigCookie=set; expires=" + expire;
63
- window.location.reload();
 
 
64
  $(".pea_cook_wrapper").fadeOut("fast");
65
  });
66
  });
@@ -71,7 +73,7 @@ function peadig_eucookie_bar() {
71
  add_action('wp_footer', 'peadig_eucookie_bar', 1000);
72
 
73
  function eu_cookie_shortcode( $atts, $content = null ) {
74
- if (!$_COOKIE['peadigCookie']) {
75
  extract(shortcode_atts(
76
  array(
77
  'height' => 'auto',
17
  return;
18
  }
19
 
20
+ if(!$_COOKIE['euCookie']){
21
  //for Cookie
22
  switch($options['length']){
23
  case "hours":
59
  $('#pea_cook_btn').click(function() {
60
  var expire = new Date();
61
  expire.setDate(expire.getDate() + <?php echo $expireTimer?>);
62
+ var isoDate = new Date(expire).toISOString();
63
+ document.cookie = "euCookie=set; expires=" + isoDate + "; path=/";
64
+ window.location.reload();
65
+
66
  $(".pea_cook_wrapper").fadeOut("fast");
67
  });
68
  });
73
  add_action('wp_footer', 'peadig_eucookie_bar', 1000);
74
 
75
  function eu_cookie_shortcode( $atts, $content = null ) {
76
+ if (!$_COOKIE['euCookie']) {
77
  extract(shortcode_atts(
78
  array(
79
  'height' => 'auto',
eu-cookie-law.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: EU Cookie Law
4
  Plugin URI: https://wordpress.org/plugins/eu-cookie-law/
5
  Description: Cookie Law informs users that your site has cookies, with a popup for more information and ability to lock scripts before acceptance.
6
- Version: 2.0.2
7
  Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
8
  Author URI: https://wordpress.org/plugins/eu-cookie-law/
9
  Contributors: alexmoss, Milmor, peer, ShaneJones
3
  Plugin Name: EU Cookie Law
4
  Plugin URI: https://wordpress.org/plugins/eu-cookie-law/
5
  Description: Cookie Law informs users that your site has cookies, with a popup for more information and ability to lock scripts before acceptance.
6
+ Version: 2.0.3
7
  Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
8
  Author URI: https://wordpress.org/plugins/eu-cookie-law/
9
  Contributors: alexmoss, Milmor, peer, ShaneJones
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === EU Cookie Law ===
2
  Contributors: alexmoss, Milmor, pleer, ShaneJones
3
- Version: 2.0.2
4
  Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
5
  Author URI: https://profiles.wordpress.org/milmor/
6
  Tags: eu cookie, cookies, law, analytics, european, italia, garante, privacy
7
  Requires at least: 3.8
8
  Tested up to: 4.3
9
- Stable tag: 2.0.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -69,7 +69,10 @@ ex. `[cookie height="100px" width="100%"] //My code [/cookie]`
69
 
70
  == Changelog ==
71
 
72
- = 2.0 + 2.0.1 + 2.0.2 - 06.2015 =
 
 
 
73
  * Plugin reload
74
 
75
  = 1.2 =
1
  === EU Cookie Law ===
2
  Contributors: alexmoss, Milmor, pleer, ShaneJones
3
+ Version: 2.0.3
4
  Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
5
  Author URI: https://profiles.wordpress.org/milmor/
6
  Tags: eu cookie, cookies, law, analytics, european, italia, garante, privacy
7
  Requires at least: 3.8
8
  Tested up to: 4.3
9
+ Stable tag: 2.0.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
69
 
70
  == Changelog ==
71
 
72
+ = 2.0.3 - 03.06.2015 =
73
+ * Fixed cookie storing caused by wrong iso date
74
+
75
+ = 2.0 + 2.0.1 + 2.0.2 - 02.06.2015 =
76
  * Plugin reload
77
 
78
  = 1.2 =