Cookie Notice by dFactory - Version 1.2.48

Version Description

  • Fix: HTML tags stripped from cookie message
  • Fix: Link target not accepted in inline privacy link
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Cookie Notice by dFactory
Version 1.2.48
Comparing to
See all releases

Code changes from version 1.2.47 to 1.2.48

Files changed (2) hide show
  1. cookie-notice.php +6 -9
  2. readme.txt +8 -4
cookie-notice.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Cookie Notice
4
  Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
5
- Version: 1.2.47
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
@@ -34,7 +34,7 @@ include_once( plugin_dir_path( __FILE__ ) . 'includes/upgrade.php' );
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
- * @version 1.2.47
38
  */
39
  class Cookie_Notice {
40
 
@@ -81,7 +81,7 @@ class Cookie_Notice {
81
  'update_notice' => true,
82
  'update_delay_date' => 0
83
  ),
84
- 'version' => '1.2.47'
85
  );
86
  private $positions = array();
87
  private $styles = array();
@@ -457,12 +457,9 @@ class Cookie_Notice {
457
  * @return string
458
  */
459
  public function cookies_policy_link_shortcode( $args, $content ) {
460
- // get privacy policy options
461
- $options = $this->options['general']['see_more_opt'];
462
-
463
  // active message link position?
464
  if ( $this->options['general']['see_more'] === 'yes' && $this->options['general']['link_position'] === 'message' )
465
- return '<a href="' . ( $options['link_type'] === 'custom' ? $options['link'] : get_permalink( $options['id'] ) ) . '" target="' . $options['link_target'] . '" id="cn-more-info" class="cn-privacy-policy-link cn-link">' . esc_html( $options['text'] !== '' ? $options['text'] : '&#x279c;' ) . '</a>';
466
 
467
  return '';
468
  }
@@ -1102,9 +1099,9 @@ class Cookie_Notice {
1102
  ) );
1103
 
1104
  if ( $options['see_more'] === 'yes' && $options['link_position'] === 'message' )
1105
- $options['message_text'] = nl2br( do_shortcode( esc_html( $options['message_text'] ) ) );
1106
  else
1107
- $options['message_text'] = nl2br( esc_html( $options['message_text'] ) );
1108
 
1109
  $options['css_class'] = esc_attr( $options['css_class'] );
1110
 
2
  /*
3
  Plugin Name: Cookie Notice
4
  Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
5
+ Version: 1.2.48
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
+ * @version 1.2.48
38
  */
39
  class Cookie_Notice {
40
 
81
  'update_notice' => true,
82
  'update_delay_date' => 0
83
  ),
84
+ 'version' => '1.2.48'
85
  );
86
  private $positions = array();
87
  private $styles = array();
457
  * @return string
458
  */
459
  public function cookies_policy_link_shortcode( $args, $content ) {
 
 
 
460
  // active message link position?
461
  if ( $this->options['general']['see_more'] === 'yes' && $this->options['general']['link_position'] === 'message' )
462
+ return '<a href="' . ( $this->options['general']['see_more_opt']['link_type'] === 'custom' ? $this->options['general']['see_more_opt']['link'] : get_permalink( $this->options['general']['see_more_opt']['id'] ) ) . '" target="' . $this->options['general']['link_target'] . '" id="cn-more-info" class="cn-privacy-policy-link cn-link">' . esc_html( $this->options['general']['see_more_opt']['text'] !== '' ? $this->options['general']['see_more_opt']['text'] : '&#x279c;' ) . '</a>';
463
 
464
  return '';
465
  }
1099
  ) );
1100
 
1101
  if ( $options['see_more'] === 'yes' && $options['link_position'] === 'message' )
1102
+ $options['message_text'] = do_shortcode( wp_kses_post( $options['message_text'] ) );
1103
  else
1104
+ $options['message_text'] = wp_kses_post( $options['message_text'] );
1105
 
1106
  $options['css_class'] = esc_attr( $options['css_class'] );
1107
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compli
5
  Requires at least: 3.3
6
  Requires PHP: 5.2.4
7
  Tested up to: 5.3
8
- Stable tag: 1.2.47
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -66,6 +66,10 @@ No questions yet.
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 1.2.47 =
70
  * New: Option to select the privacy policy link position
71
  * Tweak: Do not relad the page on refuse button click
@@ -267,6 +271,6 @@ Initial release
267
 
268
  == Upgrade Notice ==
269
 
270
- = 1.2.47 =
271
- * New: Option to select the privacy policy link position
272
- * Tweak: Do not relad the page on refuse button click
5
  Requires at least: 3.3
6
  Requires PHP: 5.2.4
7
  Tested up to: 5.3
8
+ Stable tag: 1.2.48
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
66
 
67
  == Changelog ==
68
 
69
+ = 1.2.48 =
70
+ * Fix: HTML tags stripped from cookie message
71
+ * Fix: Link target not accepted in inline privacy link
72
+
73
  = 1.2.47 =
74
  * New: Option to select the privacy policy link position
75
  * Tweak: Do not relad the page on refuse button click
271
 
272
  == Upgrade Notice ==
273
 
274
+ = 1.2.48 =
275
+ * Fix: HTML tags stripped from cookie message
276
+ * Fix: Link target not accepted in inline privacy link