Newsletter - Version 4.6.7

Version Description

  • Fixed blank page without a newsletter dedicated page
Download this release

Release Info

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

Code changes from version 4.6.6 to 4.6.7

Files changed (3) hide show
  1. plugin.php +2 -2
  2. readme.txt +5 -1
  3. subscription/subscription.php +7 -2
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
- Version: 4.6.6
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.6.6');
18
 
19
  global $wpdb, $newsletter;
20
 
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
+ Version: 4.6.7
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.6.7');
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.6.1
5
- Stable tag: 4.6.6
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -77,6 +77,10 @@ Thank you, The Newsletter Team
77
 
78
  == Changelog ==
79
 
 
 
 
 
80
  = 4.6.6 =
81
 
82
  * Fixed the blocks reload
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.6.1
5
+ Stable tag: 4.6.7
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
77
 
78
  == Changelog ==
79
 
80
+ = 4.6.7 =
81
+
82
+ * Fixed blank page without a newsletter dedicated page
83
+
84
  = 4.6.6 =
85
 
86
  * Fixed the blocks reload
subscription/subscription.php CHANGED
@@ -45,6 +45,10 @@ class NewsletterSubscription extends NewsletterModule {
45
  global $newsletter, $wpdb;
46
 
47
  switch ($newsletter->action) {
 
 
 
 
48
  case 's':
49
 
50
  if (isset($this->options['antibot_disable']) || $this->antibot_form_check()) {
@@ -64,6 +68,7 @@ class NewsletterSubscription extends NewsletterModule {
64
  $this->request_to_antibot_form('Subscribe');
65
  }
66
  die();
 
67
  case 'u':
68
  $user = $this->get_user_from_request();
69
  $email = $this->get_email_from_request();
@@ -73,7 +78,7 @@ class NewsletterSubscription extends NewsletterModule {
73
  $this->show_message('unsubscription', $user, null, $email);
74
  }
75
  die();
76
- break;
77
  case 'uc':
78
  if ($this->antibot_form_check()) {
79
  $user = $this->unsubscribe();
@@ -712,7 +717,7 @@ class NewsletterSubscription extends NewsletterModule {
712
  }
713
 
714
  // Use the standard page.
715
- header('Location: ' . plugins_url('newsletter') . '/subscription/page.php?nm=' . $key . '&nk=' . $user->id . '-' . $user->token . $params);
716
  die();
717
  }
718
 
45
  global $newsletter, $wpdb;
46
 
47
  switch ($newsletter->action) {
48
+ case 'm':
49
+ include dirname(__FILE__) . '/page.php';
50
+ die();
51
+
52
  case 's':
53
 
54
  if (isset($this->options['antibot_disable']) || $this->antibot_form_check()) {
68
  $this->request_to_antibot_form('Subscribe');
69
  }
70
  die();
71
+
72
  case 'u':
73
  $user = $this->get_user_from_request();
74
  $email = $this->get_email_from_request();
78
  $this->show_message('unsubscription', $user, null, $email);
79
  }
80
  die();
81
+
82
  case 'uc':
83
  if ($this->antibot_form_check()) {
84
  $user = $this->unsubscribe();
717
  }
718
 
719
  // Use the standard page.
720
+ header('Location: ' . home_url('/') . '?na=m&nm=' . $key . '&nk=' . $user->id . '-' . $user->token . $params);
721
  die();
722
  }
723