Ginger – EU Cookie Law - Version 4.2.1

Version Description

  • Bugfix
Download this release

Release Info

Developer manafactory
Plugin Icon 128x128 Ginger – EU Cookie Law
Version 4.2.1
Comparing to
See all releases

Code changes from version 4.2 to 4.2.1

admin/partial/banner.php CHANGED
@@ -51,7 +51,7 @@
51
  <p><label><?php
52
  if (is_array($options)) {
53
  if (function_exists("wp_editor"))
54
- wp_editor(stripslashes($options["ginger_banner_text"]), "ginger_bar_text", array('textarea_name' => "ginger_banner_text", 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true));
55
  else
56
  echo '<textarea name = "ginger_banner_text" >' . $options["ginger_banner_text"] . '</textarea>';
57
  }
51
  <p><label><?php
52
  if (is_array($options)) {
53
  if (function_exists("wp_editor"))
54
+ wp_editor(stripslashes($options["ginger_banner_text"]), "ginger_banner_text", array('textarea_name' => "ginger_banner_text", 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true));
55
  else
56
  echo '<textarea name = "ginger_banner_text" >' . $options["ginger_banner_text"] . '</textarea>';
57
  }
front/gingerfront.core.php CHANGED
@@ -103,16 +103,24 @@ function ginger_run()
103
 
104
 
105
  if (isset($option_ginger_general['ginger_opt']) && $option_ginger_general['ginger_opt'] == 'in'):
106
- ob_start();
107
- add_action('shutdown', '__shutdown', 0);
108
- add_filter('final_output', 'ginger_parse_dom');
 
 
 
 
 
 
 
 
109
  endif;
110
  }
111
 
112
  add_action('wp', 'ginger_run');
113
 
114
 
115
- function __shutdown()
116
  {
117
  $final = '';
118
 
103
 
104
 
105
  if (isset($option_ginger_general['ginger_opt']) && $option_ginger_general['ginger_opt'] == 'in'):
106
+ if ( ! function_exists( 'is_plugin_active' ) ) {
107
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
108
+ }
109
+ if (is_plugin_active('autoptimze/autoptimize') || is_plugin_active('autoptimze-beta/autoptimize')) {
110
+ add_filter('autoptimize_html_after_minify', 'ginger_parse_dom');
111
+ add_filter('autoptimize_filter_js_exclude', function($in){return $in.',ginger';});
112
+ } else {
113
+ ob_start();
114
+ add_action('shutdown', 'g__shutdown', 0);
115
+ add_filter('final_output', 'ginger_parse_dom');
116
+ }
117
  endif;
118
  }
119
 
120
  add_action('wp', 'ginger_run');
121
 
122
 
123
+ function g__shutdown()
124
  {
125
  $final = '';
126
 
front/js/reset-cookie.js CHANGED
@@ -1,5 +1,5 @@
1
  function delete_cookie(name, url) {
2
- document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
3
  if(typeof url !== 'undefined'){
4
  window.location.href = url;
5
  }else{
1
  function delete_cookie(name, url) {
2
+ document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;';
3
  if(typeof url !== 'undefined'){
4
  window.location.href = url;
5
  }else{
ginger-eu-cookie-law.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy and GDPR! Now totally free and unlocked
6
- Version: 4.2
7
- Author: Manafactory
8
- Author URI: http://manafactory.it/
9
  License: GPLv2 or later
10
  Text Domain: ginger
11
  */
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy and GDPR! Now totally free and unlocked
6
+ Version: 4.2.1
7
+ Author: Marco Buttarini, Matteo Barale
8
+ Author URI: http://bititup.it/
9
  License: GPLv2 or later
10
  Text Domain: ginger
11
  */
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
- Contributors: manafactory, webgrafia, matteobarale
3
  Donate link: http://www.ginger-cookielaw.com/
4
  Tags: EU Cookie Law, GDPR, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
5
  Requires at least: 3.0.1
6
- Tested up to: 4.9.6
7
- Stable tag: 4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -90,6 +90,9 @@ Yes, actually you we have 2 addons for multilanguages: wpml and polylang. Ask to
90
 
91
  == Changelog ==
92
 
 
 
 
93
  = 4.2 =
94
  * Bugfix
95
 
1
  === Plugin Name ===
2
+ Contributors: webgrafia, matteobarale
3
  Donate link: http://www.ginger-cookielaw.com/
4
  Tags: EU Cookie Law, GDPR, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia, wpml, polylang
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.1.1
7
+ Stable tag: 4.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
90
 
91
  == Changelog ==
92
 
93
+ = 4.2.1 =
94
+ * Bugfix
95
+
96
  = 4.2 =
97
  * Bugfix
98