iubenda Cookie Solution for GDPR - Version 3.2.3

Version Description

  • Support PHP 8
Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

assets/css/admin.css CHANGED
@@ -54,4 +54,14 @@
54
  }
55
  .iubenda-notice .reply-no:before {
56
  content: "\f335";
 
 
 
 
 
 
 
 
 
 
57
  }
54
  }
55
  .iubenda-notice .reply-no:before {
56
  content: "\f335";
57
+ }
58
+
59
+ .iubenda-rate-stars {
60
+ display: inline-block;
61
+ color: #ffb900;
62
+ position: relative;
63
+ top: 3px;
64
+ }
65
+ .iubenda-rate-stars svg {
66
+ fill: #ffb900
67
  }
includes/ProductHelper.php CHANGED
@@ -97,7 +97,7 @@ class ProductHelper
97
  $iubenda_code = iubenda()->options[$key]['code_default'];
98
  }
99
 
100
- return boolval(trim($iubenda_code));
101
  }
102
 
103
  /**
97
  $iubenda_code = iubenda()->options[$key]['code_default'];
98
  }
99
 
100
+ return boolval(trim($iubenda_code ?: ''));
101
  }
102
 
103
  /**
includes/forms-list-table.php CHANGED
@@ -19,6 +19,7 @@ class iubenda_List_Table_Forms extends WP_List_Table {
19
  */
20
  public function __construct() {
21
  global $status, $page;
 
22
 
23
  // set parent defaults
24
  parent::__construct( array(
19
  */
20
  public function __construct() {
21
  global $status, $page;
22
+ $GLOBALS['hook_suffix'] = isset($GLOBALS['hook_suffix']) ? $GLOBALS['hook_suffix'] : '';
23
 
24
  // set parent defaults
25
  parent::__construct( array(
includes/forms.php CHANGED
@@ -1138,7 +1138,7 @@ class iubenda_Forms {
1138
  continue;
1139
  }
1140
 
1141
- $name = trim( $form->form_fields[ $index ]['name'], 'wpforms' );
1142
  $array_key = substr( str_replace( '][', '.', $name ), 1, - 1 );
1143
  // Special handling for checkboxes, By checking the name is ending with array brackets
1144
  if ( '[]' === substr( $name, - 2 ) ) {
1138
  continue;
1139
  }
1140
 
1141
+ $name = trim( $form->form_fields[ $index ]['name'] ?: '', 'wpforms' );
1142
  $array_key = substr( str_replace( '][', '.', $name ), 1, - 1 );
1143
  // Special handling for checkboxes, By checking the name is ending with array brackets
1144
  if ( '[]' === substr( $name, - 2 ) ) {
includes/settings.php CHANGED
@@ -784,7 +784,7 @@ class iubenda_Settings {
784
  if ( ! $key || ! $message )
785
  return;
786
 
787
- $notices = get_transient( 'iubenda_dashboard_notices' );
788
  $delay = MINUTE_IN_SECONDS * 2;
789
 
790
  // Check notice type is exist before checking the key
784
  if ( ! $key || ! $message )
785
  return;
786
 
787
+ $notices = get_transient( 'iubenda_dashboard_notices' ) ?: [];
788
  $delay = MINUTE_IN_SECONDS * 2;
789
 
790
  // Check notice type is exist before checking the key
iubenda_cookie_solution.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Cookie and Consent Solution for the GDPR & ePrivacy
4
  Plugin URI: https://www.iubenda.com
5
- Description: An All-in-One approach developed by iubenda, which includes functionalities of two powerful solutions that help to make your website GDPR and ePrivacy compliant.
6
- Version: 3.2.2
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
@@ -36,7 +36,7 @@ define( 'IUB_DEBUG', false );
36
  * @property IubendaLegalBlock $block
37
  *
38
  * @class iubenda
39
- * @version 3.2.2
40
  */
41
  class iubenda {
42
 
@@ -94,7 +94,7 @@ class iubenda {
94
  )
95
  );
96
  public $base_url;
97
- public $version = '3.2.2';
98
  public $activation = array(
99
  'update_version' => 0,
100
  'update_notice' => true,
@@ -725,7 +725,7 @@ class iubenda {
725
  */
726
  public function parse_code( $source, $display = false ) {
727
  // return $source;
728
- $source = trim( $source );
729
 
730
  preg_match_all( '/(\"(?:html|content)\"(?:\s+)?\:(?:\s+)?)\"((?:.*?)(?:[^\\\\]))\"/s', $source, $matches );
731
 
@@ -1305,7 +1305,7 @@ if ( ! function_exists('iubenda_add_plugin_meta_links') ) {
1305
  if ( plugin_basename(__FILE__) == $file ) {
1306
  $plugin_url = "https://wordpress.org/support/plugin/iubenda-cookie-law-solution/reviews/?rate=5#new-post";
1307
  $meta_fields[] = "<a href='" . esc_url($plugin_url) ."' target='_blank' title='" . esc_html__('Rate', 'iubenda') . "'>
1308
- <i class='IUB-rate-stars'>"
1309
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
1310
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
1311
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
2
  /*
3
  Plugin Name: Cookie and Consent Solution for the GDPR & ePrivacy
4
  Plugin URI: https://www.iubenda.com
5
+ Description: The iubenda plugin is an <strong>all-in-one</strong>, extremely easy to use 360° compliance solution, with text crafted by actual lawyers, that quickly <strong>scans your site and auto-configures to match your specific setup</strong>. It supports the GDPR (DSGVO, RGPD), UK-GDPR, ePrivacy, LGPD, CCPA, CalOPPA, PECR and more.
6
+ Version: 3.2.3
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
36
  * @property IubendaLegalBlock $block
37
  *
38
  * @class iubenda
39
+ * @version 3.2.3
40
  */
41
  class iubenda {
42
 
94
  )
95
  );
96
  public $base_url;
97
+ public $version = '3.2.3';
98
  public $activation = array(
99
  'update_version' => 0,
100
  'update_notice' => true,
725
  */
726
  public function parse_code( $source, $display = false ) {
727
  // return $source;
728
+ $source = trim( $source ?: '' );
729
 
730
  preg_match_all( '/(\"(?:html|content)\"(?:\s+)?\:(?:\s+)?)\"((?:.*?)(?:[^\\\\]))\"/s', $source, $matches );
731
 
1305
  if ( plugin_basename(__FILE__) == $file ) {
1306
  $plugin_url = "https://wordpress.org/support/plugin/iubenda-cookie-law-solution/reviews/?rate=5#new-post";
1307
  $meta_fields[] = "<a href='" . esc_url($plugin_url) ."' target='_blank' title='" . esc_html__('Rate', 'iubenda') . "'>
1308
+ <i class='iubenda-rate-stars'>"
1309
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
1310
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
1311
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: cookie banner, cookie law, eprivacy, gdpr, ukgdpr, ccpa, caloppa, lgpd, ds
5
  Requires at least: 5.0
6
  Requires PHP: 7.0.0
7
  Tested up to: 6.0
8
- Stable tag: 3.2.2
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -254,6 +254,9 @@ The Brazilian General Data Protection Law, the ***Lei Geral de Proteção de Dad
254
 
255
  == Changelog ==
256
 
 
 
 
257
  = 3.2.2 =
258
  * Add analytics to the plugin
259
 
@@ -716,5 +719,5 @@ The Brazilian General Data Protection Law, the ***Lei Geral de Proteção de Dad
716
 
717
  == Upgrade Notice ==
718
 
719
- = 3.2.2 =
720
- * Add analytics to the plugin
5
  Requires at least: 5.0
6
  Requires PHP: 7.0.0
7
  Tested up to: 6.0
8
+ Stable tag: 3.2.3
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
254
 
255
  == Changelog ==
256
 
257
+ = 3.2.3 =
258
+ * Support PHP 8
259
+
260
  = 3.2.2 =
261
  * Add analytics to the plugin
262
 
719
 
720
  == Upgrade Notice ==
721
 
722
+ = 3.2.3 =
723
+ * Support PHP 8