iubenda Cookie Solution for GDPR - Version 1.10.7

Version Description

  • Further work on resolving any conflicts with other plugins
  • Fixed a problem with the Media library
Download this release

Release Info

Developer Facens
Plugin Icon 128x128 iubenda Cookie Solution for GDPR
Version 1.10.7
Comparing to
See all releases

Code changes from version 1.10.5 to 1.10.7

iubenda-cookie-class/simple_html_dom.php CHANGED
@@ -1153,13 +1153,7 @@ class simple_html_dom
1153
  $this->original_size = $this->size;
1154
 
1155
  //before we save the string as the doc... strip out the \r \n's if we are told to.
1156
- if ($stripRN) {
1157
- $str = str_replace("\r", " ", $str);
1158
- $str = str_replace("\n", " ", $str);
1159
-
1160
- // set the length of content since we have changed it.
1161
- $this->size = strlen($str);
1162
- }
1163
 
1164
  $this->doc = $str;
1165
  $this->pos = 0;
1153
  $this->original_size = $this->size;
1154
 
1155
  //before we save the string as the doc... strip out the \r \n's if we are told to.
1156
+ $stripRN = false;
 
 
 
 
 
 
1157
 
1158
  $this->doc = $str;
1159
  $this->pos = 0;
iubenda_cookie_solution.php CHANGED
@@ -1,24 +1,27 @@
1
  <?php
2
  /*
3
- Plugin Name: Iubenda Cookie Solution
4
- Plugin URI: https://www.iubenda.com
5
- Description: Iubenda Cookie Solution permette di gestire tutti gli aspetti della cookie law su WP.
6
- Author: iubenda
7
- Version: 1.10.5
8
- Text Domain: iubenda-cookie-wp-plugin
9
- Author URI: https://www.iubenda.com
10
  */
11
 
12
- DEFINE('DEBUG', 0);
13
- DEFINE('VOICE_MENU', 'Iubenda');
14
- DEFINE('URL_MENU', str_replace(' ', '_', VOICE_MENU));
15
- DEFINE('IUB_REGEX_PATTERN', '/<!--IUB_COOKIE_POLICY_START-->(.*)<!--IUB_COOKIE_POLICY_END-->/sU');
16
- DEFINE('IUB_NO_PARSE_GET_PARAM', isset($_GET['iub_no_parse']));
17
 
18
  /**/
19
 
20
  function iubenda_load_admin_panel()
21
  {
 
 
 
 
 
 
22
  /*
23
  * Check for WPML
24
  */
@@ -48,7 +51,7 @@
48
  if(is_admin()) add_action('admin_menu', 'iub_admin');
49
  }
50
 
51
- add_action("plugins_loaded", "iubenda_load_admin_panel");
52
 
53
  function __iubenda_buffer_head()
54
  {
@@ -56,8 +59,6 @@
56
  * __iubenda_buffer_head
57
  */
58
 
59
- ob_start();
60
-
61
  /**/
62
 
63
  $iubenda_code = "";
@@ -83,13 +84,10 @@
83
  update_option("iub_code", false);
84
  }
85
 
86
- if(defined("IUBENDA_WPML") && get_option("iubenda-code-".ICL_LANGUAGE_CODE))
87
- {
88
-
89
  $iubenda_code .= get_option("iubenda-code-".ICL_LANGUAGE_CODE);
90
  }
91
- else
92
- {
93
  $iubenda_code .= get_option("iubenda-code-default");
94
  }
95
 
@@ -120,23 +118,6 @@ if('callback' in _iub.csConfiguration) {
120
  }
121
 
122
  /**/
123
-
124
- add_action("wp_head", "__iubenda_buffer_head", 99);
125
-
126
- function __iubenda_shutdown()
127
- {
128
- $final = "";
129
-
130
- $levels = count(ob_get_level());
131
-
132
- for($i = 0; $i < $levels; $i++){
133
- $final .= ob_get_clean();
134
- }
135
-
136
- echo apply_filters("final_output", $final);
137
- }
138
-
139
- add_action("shutdown", "__iubenda_shutdown", 0);
140
 
141
  function __iubenda_final_output($output)
142
  {
@@ -152,16 +133,9 @@ if('callback' in _iub.csConfiguration) {
152
  return $page->get_converted_page();
153
  }
154
 
155
- add_filter("final_output", "__iubenda_final_output");
156
-
157
- /**/
158
-
159
- function iub_func($atts, $content = "") {
160
- return '<!--IUB_COOKIE_POLICY_START-->'.do_shortcode($content).'<!--IUB_COOKIE_POLICY_END-->';
161
- }
162
-
163
-
164
- add_shortcode('iub-cookie-policy', 'iub_func');
165
 
166
 
167
  /***********************************
@@ -171,8 +145,7 @@ if('callback' in _iub.csConfiguration) {
171
  ************************************/
172
 
173
 
174
- function iub_admin()
175
- {
176
  add_menu_page("Iubenda - Settings", "Iubenda", "administrator", __FILE__, "__iub_admin_load");
177
  }
178
 
@@ -510,7 +483,7 @@ if('callback' in _iub.csConfiguration) {
510
  echo '
511
  <p>
512
  <input type="checkbox" name="skip_parsing" value="skip" '.$checked.'>
513
- Lascia intatti gli script della pagina se l\'utente ha già dato il consenso (migliora le prestazioni, altamente consigliato, da disattivare solo qualora tuo sito utilizzi un sistema di cache)
514
  </p>
515
  <p>
516
  <input type="submit" value="SAVE" id="iubenda-save">
1
  <?php
2
  /*
3
+ * Plugin Name: Iubenda Cookie Solution
4
+ * Plugin URI: https://www.iubenda.com
5
+ * Description: Iubenda Cookie Solution permette di gestire tutti gli aspetti della cookie law su WP.
6
+ * Author: iubenda
7
+ * Version: 1.10.7
8
+ * Text Domain: iubenda-cookie-wp-plugin
9
+ * Author URI: https://www.iubenda.com
10
  */
11
 
12
+ define('DEBUG', 0);
13
+ define('IUB_NO_PARSE_GET_PARAM', isset($_GET['iub_no_parse']));
 
 
 
14
 
15
  /**/
16
 
17
  function iubenda_load_admin_panel()
18
  {
19
+ /**/
20
+
21
+ if(!is_admin()) {
22
+ ob_start("__iubenda_final_output");
23
+ }
24
+
25
  /*
26
  * Check for WPML
27
  */
51
  if(is_admin()) add_action('admin_menu', 'iub_admin');
52
  }
53
 
54
+ add_action("registered_taxonomy", "iubenda_load_admin_panel", -PHP_INT_MAX);
55
 
56
  function __iubenda_buffer_head()
57
  {
59
  * __iubenda_buffer_head
60
  */
61
 
 
 
62
  /**/
63
 
64
  $iubenda_code = "";
84
  update_option("iub_code", false);
85
  }
86
 
87
+ if(defined("IUBENDA_WPML") && get_option("iubenda-code-".ICL_LANGUAGE_CODE)) {
 
 
88
  $iubenda_code .= get_option("iubenda-code-".ICL_LANGUAGE_CODE);
89
  }
90
+ else {
 
91
  $iubenda_code .= get_option("iubenda-code-default");
92
  }
93
 
118
  }
119
 
120
  /**/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  function __iubenda_final_output($output)
123
  {
133
  return $page->get_converted_page();
134
  }
135
 
136
+ if(!is_admin()) {
137
+ add_action("wp_head", "__iubenda_buffer_head");
138
+ }
 
 
 
 
 
 
 
139
 
140
 
141
  /***********************************
145
  ************************************/
146
 
147
 
148
+ function iub_admin() {
 
149
  add_menu_page("Iubenda - Settings", "Iubenda", "administrator", __FILE__, "__iub_admin_load");
150
  }
151
 
483
  echo '
484
  <p>
485
  <input type="checkbox" name="skip_parsing" value="skip" '.$checked.'>
486
+ Lascia intatti gli script della pagina se l\'utente ha già dato il consenso (migliora le prestazioni, altamente consigliato, da disattivare solo qualora il tuo sito utilizzi un sistema di cache)
487
  </p>
488
  <p>
489
  <input type="submit" value="SAVE" id="iubenda-save">
readme.txt CHANGED
@@ -122,6 +122,10 @@ Il plugin Wordpress di iubenda permette di semplificare l’adeguamento del prop
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = 1.10.5 =
126
  * Reverting the parsing method to 1.9.19, slower but more stable
127
 
122
 
123
  == Changelog ==
124
 
125
+ = 1.10.7 =
126
+ * Further work on resolving any conflicts with other plugins
127
+ * Fixed a problem with the Media library
128
+
129
  = 1.10.5 =
130
  * Reverting the parsing method to 1.9.19, slower but more stable
131