iubenda Cookie Solution for GDPR - Version 1.10.11

Version Description

  • iub_no_parse parameter reintroduced
  • added XMLRPC control
Download this release

Release Info

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

Code changes from version 1.10.9 to 1.10.11

Files changed (2) hide show
  1. iubenda_cookie_solution.php +13 -8
  2. readme.txt +13 -0
iubenda_cookie_solution.php CHANGED
@@ -4,14 +4,19 @@
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.9
8
  * Text Domain: iubenda-cookie-wp-plugin
9
  * Author URI: https://www.iubenda.com
10
  */
11
 
12
  define('DEBUG', 0);
13
  define('IUB_REGEX_PATTERN', '/<!--IUB_COOKIE_POLICY_START-->(.*)<!--IUB_COOKIE_POLICY_END-->/sU');
14
- define('IUB_NO_PARSE_GET_PARAM', isset($_GET['iub_no_parse']));
 
 
 
 
 
15
 
16
  /**/
17
 
@@ -61,7 +66,7 @@
61
  if(get_option("iub_code")) {
62
  $wpml_old = html_entity_decode(stripslashes(get_option("iub_code")));
63
 
64
- $iubenda_languages = array("it", "de", "en", "es", "br", "ru");
65
 
66
  foreach($iubenda_languages as $iubenda_language)
67
  {
@@ -140,7 +145,7 @@ if('callback' in _iub.csConfiguration) {
140
 
141
  function __iubenda_final_output($output)
142
  {
143
- if(Page::consent_given() && get_option("skip_parsing") || defined(IUB_NO_PARSE_GET_PARAM) || Page::bot_detected()) {
144
  return $output;
145
  }
146
 
@@ -186,7 +191,7 @@ if('callback' in _iub.csConfiguration) {
186
  if(get_option("iub_code")) {
187
  $wpml_old = html_entity_decode(stripslashes(get_option("iub_code")));
188
 
189
- $iubenda_languages = array("it", "de", "en", "es", "br", "ru");
190
 
191
  foreach($iubenda_languages as $iubenda_language)
192
  {
@@ -218,7 +223,7 @@ if('callback' in _iub.csConfiguration) {
218
  wp_die( __( 'You are not allowed to access this part of the site' ) );
219
  }
220
 
221
- $iubenda_language = array("it", "de", "en", "es", "br", "ru", "default");
222
 
223
  if($_POST)
224
  {
@@ -293,7 +298,7 @@ if('callback' in _iub.csConfiguration) {
293
  border-color: transparent transparent;
294
  }
295
 
296
- #iubenda-code-it, #iubenda-code-de, #iubenda-code-ru, #iubenda-code-es, #iubenda-code-br, #iubenda-code-en {
297
  display: none;
298
 
299
  width: 100%;
@@ -415,7 +420,7 @@ if('callback' in _iub.csConfiguration) {
415
  </style>
416
  <script>
417
  function iubendaGetLanguage(str) {
418
- var languages = ["it", "de", "en", "es", "br", "ru"];
419
 
420
  for(var i = 0; i < languages.length; i++) {
421
  var tab = document.getElementById("iubenda-code-" + languages[i]);
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.11
8
  * Text Domain: iubenda-cookie-wp-plugin
9
  * Author URI: https://www.iubenda.com
10
  */
11
 
12
  define('DEBUG', 0);
13
  define('IUB_REGEX_PATTERN', '/<!--IUB_COOKIE_POLICY_START-->(.*)<!--IUB_COOKIE_POLICY_END-->/sU');
14
+
15
+ /**/
16
+
17
+ if(isset($_GET["iub_no_parse"]) && !empty($_GET["iub_no_parse"]) || defined("XMLRPC_REQUEST") && XMLRPC_REQUEST) {
18
+ return;
19
+ }
20
 
21
  /**/
22
 
66
  if(get_option("iub_code")) {
67
  $wpml_old = html_entity_decode(stripslashes(get_option("iub_code")));
68
 
69
+ $iubenda_languages = array("it", "de", "en", "es", "pt-br", "ru", "fr");
70
 
71
  foreach($iubenda_languages as $iubenda_language)
72
  {
145
 
146
  function __iubenda_final_output($output)
147
  {
148
+ if(Page::consent_given() && get_option("skip_parsing") || Page::bot_detected()) {
149
  return $output;
150
  }
151
 
191
  if(get_option("iub_code")) {
192
  $wpml_old = html_entity_decode(stripslashes(get_option("iub_code")));
193
 
194
+ $iubenda_languages = array("it", "de", "en", "es", "pt-br", "ru", "fr");
195
 
196
  foreach($iubenda_languages as $iubenda_language)
197
  {
223
  wp_die( __( 'You are not allowed to access this part of the site' ) );
224
  }
225
 
226
+ $iubenda_language = array("it", "de", "en", "es", "pt-br", "ru", "fr", "default");
227
 
228
  if($_POST)
229
  {
298
  border-color: transparent transparent;
299
  }
300
 
301
+ #iubenda-code-it, #iubenda-code-de, #iubenda-code-ru, #iubenda-code-es, #iubenda-code-pt-br, #iubenda-code-en, #iubenda-code-fr {
302
  display: none;
303
 
304
  width: 100%;
420
  </style>
421
  <script>
422
  function iubendaGetLanguage(str) {
423
+ var languages = ["it", "de", "en", "es", "pt-br", "ru", "fr"];
424
 
425
  for(var i = 0; i < languages.length; i++) {
426
  var tab = document.getElementById("iubenda-code-" + languages[i]);
readme.txt CHANGED
@@ -104,6 +104,8 @@ Il plugin Wordpress di iubenda permette di semplificare l’adeguamento del prop
104
 
105
  `<!--IUB_COOKIE_POLICY_START-->
106
  <!--IUB_COOKIE_POLICY_END-->`
 
 
107
 
108
  - **Installazione automatica**: installa da WordPres.org cercando "Iubenda Cookie Solution";
109
  - Una volta installato ed attivato il plugin, accedi al pannello Admin (Impostazioni > Iubenda Cookie Solution) dove ti verrà chiesto di incollare in un campo il codice che iubenda genera quando attivi il kit cookie law sulla tua privacy policy. Per ulteriori informazioni su come attivare il kit cookie law, consulta questo articolo: https://www.iubenda.com/it/help/posts/680;
@@ -113,6 +115,7 @@ Il plugin Wordpress di iubenda permette di semplificare l’adeguamento del prop
113
 
114
  `<!--IUB_COOKIE_POLICY_START-->
115
  <!--IUB_COOKIE_POLICY_END-->`
 
116
 
117
  == Screenshots ==
118
 
@@ -122,6 +125,16 @@ Il plugin Wordpress di iubenda permette di semplificare l’adeguamento del prop
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
 
 
125
  = 1.10.9 =
126
  * Further bugfixing
127
 
104
 
105
  `<!--IUB_COOKIE_POLICY_START-->
106
  <!--IUB_COOKIE_POLICY_END-->`
107
+ - In case you're querying WordPress via API, you can disable our plugin by using the iub_no_parse=true URL parameter, like this: www.example.com/api/get_recent_posts?iub_no_parse=true.
108
+
109
 
110
  - **Installazione automatica**: installa da WordPres.org cercando "Iubenda Cookie Solution";
111
  - Una volta installato ed attivato il plugin, accedi al pannello Admin (Impostazioni > Iubenda Cookie Solution) dove ti verrà chiesto di incollare in un campo il codice che iubenda genera quando attivi il kit cookie law sulla tua privacy policy. Per ulteriori informazioni su come attivare il kit cookie law, consulta questo articolo: https://www.iubenda.com/it/help/posts/680;
115
 
116
  `<!--IUB_COOKIE_POLICY_START-->
117
  <!--IUB_COOKIE_POLICY_END-->`
118
+ - Se utilizzi WordPress tramite API, puoi disattivare il nostro plugin usando il parametro URL iub_no_parse=true, in questo modo: www.example.com/api/get_recent_posts?iub_no_parse=true.
119
 
120
  == Screenshots ==
121
 
125
 
126
  == Changelog ==
127
 
128
+ = 1.10.11 =
129
+ * iub_no_parse parameter reintroduced
130
+ * added XMLRPC control
131
+
132
+ = 1.10.10 =
133
+ * French and Portuguese languages fixed when used with WPML
134
+
135
+ = 1.10.9 =
136
+ * Further bugfixing
137
+
138
  = 1.10.9 =
139
  * Further bugfixing
140