Newsletter - Version 5.9.2

Version Description

  • Fixed a debug notice on subscription page
Download this release

Release Info

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

Code changes from version 5.9.1 to 5.9.2

Files changed (3) hide show
  1. includes/module.php +10 -1
  2. plugin.php +2 -2
  3. readme.txt +5 -1
includes/module.php CHANGED
@@ -979,12 +979,21 @@ class NewsletterModule {
979
  }
980
  $user = $this->get_user($id);
981
 
 
 
 
 
 
 
 
 
982
  if ($context == 'preconfirm') {
983
  $user_token = md5($user->token);
984
  } else {
985
  $user_token = $user->token;
986
  }
987
- if ($user == null || $token != $user_token) {
 
988
  if ($die_on_fail) {
989
  die(__('No subscriber found.', 'newsletter'));
990
  } else {
979
  }
980
  $user = $this->get_user($id);
981
 
982
+ if ($user == null) {
983
+ if ($die_on_fail) {
984
+ die(__('No subscriber found.', 'newsletter'));
985
+ } else {
986
+ return null;
987
+ }
988
+ }
989
+
990
  if ($context == 'preconfirm') {
991
  $user_token = md5($user->token);
992
  } else {
993
  $user_token = $user->token;
994
  }
995
+
996
+ if ($token != $user_token) {
997
  if ($die_on_fail) {
998
  die(__('No subscriber found.', 'newsletter'));
999
  } else {
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.9.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.
@@ -29,7 +29,7 @@
29
  */
30
 
31
  // Used as dummy parameter on css and js links
32
- define('NEWSLETTER_VERSION', '5.9.1');
33
 
34
  global $newsletter, $wpdb;
35
 
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.9.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.
29
  */
30
 
31
  // Used as dummy parameter on css and js links
32
+ define('NEWSLETTER_VERSION', '5.9.2');
33
 
34
  global $newsletter, $wpdb;
35
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
3
  Requires at least: 3.4.0
4
  Tested up to: 5.1.1
5
- Stable tag: 5.9.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -122,6 +122,10 @@ Thank you, The Newsletter Team
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = 5.9.1 =
126
 
127
  * Fixed language support on some shortcodes
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
3
  Requires at least: 3.4.0
4
  Tested up to: 5.1.1
5
+ Stable tag: 5.9.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
122
 
123
  == Changelog ==
124
 
125
+ = 5.9.2 =
126
+
127
+ * Fixed a debug notice on subscription page
128
+
129
  = 5.9.1 =
130
 
131
  * Fixed language support on some shortcodes