iubenda Cookie Solution for GDPR - Version 1.15.6

Version Description

  • Fix: iubenda script tags removed when Jetpack is active
Download this release

Release Info

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

Code changes from version 1.15.5 to 1.15.6

Files changed (2) hide show
  1. iubenda_cookie_solution.php +27 -25
  2. readme.txt +7 -4
iubenda_cookie_solution.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: iubenda Cookie Solution for GDPR
4
  Plugin URI: https://www.iubenda.com
5
  Description: iubenda Cookie Solution allows you to make your website GDPR compliant and manage all aspects of cookie law on WP.
6
- Version: 1.15.5
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
@@ -35,7 +35,7 @@ $iubenda_cookie_law_solution = new iubenda_Cookie_Law_Solution();
35
  * iubenda_Cookie_Law_Solution final class.
36
  *
37
  * @class iubenda_Cookie_Law_Solution
38
- * @version 1.15.5
39
  */
40
  class iubenda_Cookie_Law_Solution {
41
 
@@ -53,7 +53,7 @@ class iubenda_Cookie_Law_Solution {
53
  'custom_iframes' => array(),
54
  'deactivation' => false
55
  );
56
- public $version = '1.15.5';
57
  public $no_html = false;
58
  public $links = array();
59
  public $multilang = false;
@@ -771,31 +771,33 @@ class iubenda_Cookie_Law_Solution {
771
  * @return array
772
  */
773
  public function get_allowed_html() {
774
- return apply_filters(
775
- 'iub_code_allowed_html',
776
- array_merge(
777
- wp_kses_allowed_html( 'post' ),
778
- array(
779
- 'script' => array(
780
- 'type' => array(),
781
- 'src' => array(),
782
- 'charset' => array(),
783
- 'async' => array()
784
- ),
785
- 'noscript' => array(),
786
- 'style' => array(
787
- 'type' => array()
788
- ),
789
- 'iframe' => array(
790
- 'src' => array(),
791
- 'height' => array(),
792
- 'width' => array(),
793
- 'frameborder' => array(),
794
- 'allowfullscreen' => array()
795
- )
796
  )
797
  )
798
  );
 
 
799
  }
800
 
801
  /**
3
  Plugin Name: iubenda Cookie Solution for GDPR
4
  Plugin URI: https://www.iubenda.com
5
  Description: iubenda Cookie Solution allows you to make your website GDPR compliant and manage all aspects of cookie law on WP.
6
+ Version: 1.15.6
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
35
  * iubenda_Cookie_Law_Solution final class.
36
  *
37
  * @class iubenda_Cookie_Law_Solution
38
+ * @version 1.15.6
39
  */
40
  class iubenda_Cookie_Law_Solution {
41
 
53
  'custom_iframes' => array(),
54
  'deactivation' => false
55
  );
56
+ public $version = '1.15.6';
57
  public $no_html = false;
58
  public $links = array();
59
  public $multilang = false;
771
  * @return array
772
  */
773
  public function get_allowed_html() {
774
+ // Jetpack fix
775
+ remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'filter' ), 11 );
776
+
777
+ $html = array_merge(
778
+ wp_kses_allowed_html( 'post' ),
779
+ array(
780
+ 'script' => array(
781
+ 'type' => array(),
782
+ 'src' => array(),
783
+ 'charset' => array(),
784
+ 'async' => array()
785
+ ),
786
+ 'noscript' => array(),
787
+ 'style' => array(
788
+ 'type' => array()
789
+ ),
790
+ 'iframe' => array(
791
+ 'src' => array(),
792
+ 'height' => array(),
793
+ 'width' => array(),
794
+ 'frameborder' => array(),
795
+ 'allowfullscreen' => array()
796
  )
797
  )
798
  );
799
+
800
+ return apply_filters( 'iub_code_allowed_html', $html );
801
  }
802
 
803
  /**
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link:
4
  Tags: cookies, cookie law, cookie policy, cookie banner, cookie block, privacy policy, cookie consent, privacy
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
- Tested up to: 5.0.3
8
- Stable tag: 1.15.5
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -141,6 +141,9 @@ We will be very happy to receive feedback here: [Uservoice forum](http://support
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 1.15.5 =
145
  * Fix: Skip parsing engine when scripts blocking is disabled
146
  * Tweak: Update iubenda logo
@@ -345,5 +348,5 @@ We will be very happy to receive feedback here: [Uservoice forum](http://support
345
 
346
  == Upgrade Notice ==
347
 
348
- = 1.15.5 =
349
- * Fix: Skip parsing engine when scripts blocking is disabled
4
  Tags: cookies, cookie law, cookie policy, cookie banner, cookie block, privacy policy, cookie consent, privacy
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
+ Tested up to: 5.1.1
8
+ Stable tag: 1.15.6
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.15.6 =
145
+ * Fix: iubenda script tags removed when Jetpack is active
146
+
147
  = 1.15.5 =
148
  * Fix: Skip parsing engine when scripts blocking is disabled
149
  * Tweak: Update iubenda logo
348
 
349
  == Upgrade Notice ==
350
 
351
+ = 1.15.6 =
352
+ * Fix: iubenda script tags removed when Jetpack is active