Newsletter - Version 5.0.2

Version Description

=

  • Fixed a notice on theme selection panel
  • Fixed a block initialization error notice for woocommerce
  • Improved the emoji support on newsletter subject

=

Download this release

Release Info

Developer satollo
Plugin Icon 128x128 Newsletter
Version 5.0.2
Comparing to
See all releases

Code changes from version 5.0.1 to 5.0.2

Files changed (5) hide show
  1. emails/emails.php +6 -6
  2. includes/store.php +2 -0
  3. includes/themes.php +1 -1
  4. plugin.php +2 -2
  5. readme.txt +8 -2
emails/emails.php CHANGED
@@ -76,13 +76,13 @@ class NewsletterEmails extends NewsletterModule {
76
 
77
  $data = '';
78
  foreach ($options as $key => $value) {
79
- // if (!is_array($value)) {
80
  $data .= 'options[' . $key . ']=' . urlencode($value) . '&';
81
- // } else {
82
- // foreach ($value as $v) {
83
- // $data .= 'options[' . $key . '][]=' . urlencode($v) . '&';
84
- // }
85
- // }
86
  }
87
 
88
  if (isset($_POST['full'])) {
76
 
77
  $data = '';
78
  foreach ($options as $key => $value) {
79
+ if (!is_array($value)) {
80
  $data .= 'options[' . $key . ']=' . urlencode($value) . '&';
81
+ } else {
82
+ foreach ($value as $v) {
83
+ $data .= 'options[' . $key . '][]=' . urlencode($v) . '&';
84
+ }
85
+ }
86
  }
87
 
88
  if (isset($_POST['full'])) {
includes/store.php CHANGED
@@ -86,6 +86,8 @@ class NewsletterStore {
86
  }
87
 
88
  function sanitize($data) {
 
 
89
  foreach ($data as $key => $value) {
90
  $data[$key] = preg_replace('%(?:\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})%xs', '', $value);
91
  }
86
  }
87
 
88
  function sanitize($data) {
89
+ global $wpdb;
90
+ if ('utf8mb4' === $wpdb->charset) return $data;
91
  foreach ($data as $key => $value) {
92
  $data[$key] = preg_replace('%(?:\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})%xs', '', $value);
93
  }
includes/themes.php CHANGED
@@ -166,7 +166,7 @@ class NewsletterThemes {
166
  if (is_file($file)) {
167
  @include $file;
168
  }
169
- if (is_array($theme_defaults)) {
170
  $options = array_merge($theme_defaults, $options);
171
  }
172
  return $options;
166
  if (is_file($file)) {
167
  @include $file;
168
  }
169
+ if (isset($theme_defaults) && is_array($theme_defaults)) {
170
  $options = array_merge($theme_defaults, $options);
171
  }
172
  return $options;
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Newsletter
5
  Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
6
  Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
- Version: 5.0.1
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: https://www.thenewsletterplugin.com
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
@@ -14,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.0.1');
18
 
19
  global $wpdb, $newsletter;
20
 
4
  Plugin Name: Newsletter
5
  Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
6
  Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
+ Version: 5.0.2
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: https://www.thenewsletterplugin.com
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
+ define('NEWSLETTER_VERSION', '5.0.2');
18
 
19
  global $wpdb, $newsletter;
20
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.8
5
- Stable tag: 5.0.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -85,7 +85,13 @@ Thank you, The Newsletter Team
85
 
86
  == Changelog ==
87
 
88
- == NEXT ==
 
 
 
 
 
 
89
 
90
  * Fixed and improved the heading block
91
  * Fixed the can spam block (not showing default texts is not configured)
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.8
5
+ Stable tag: 5.0.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
85
 
86
  == Changelog ==
87
 
88
+ == 5.0.2 ==
89
+
90
+ * Fixed a notice on theme selection panel
91
+ * Fixed a block initialization error notice for woocommerce
92
+ * Improved the emoji support on newsletter subject
93
+
94
+ == 5.0.1 ==
95
 
96
  * Fixed and improved the heading block
97
  * Fixed the can spam block (not showing default texts is not configured)