Version Description
- Cancellation error message fix
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.7.0 |
Comparing to | |
See all releases |
Code changes from version 5.6.9 to 5.7.0
- plugin.php +2 -2
- readme.txt +5 -1
- unsubscription/unsubscription.php +4 -8
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.
|
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.
|
18 |
|
19 |
global $newsletter, $wpdb;
|
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.7.0
|
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.7.0');
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
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: 4.9.8
|
5 |
-
Stable tag: 5.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -108,6 +108,10 @@ Thank you, The Newsletter Team
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
111 |
= 5.6.9 =
|
112 |
|
113 |
* Improved separator block for Outlook compatibility
|
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: 4.9.8
|
5 |
+
Stable tag: 5.7.0
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 5.7.0 =
|
112 |
+
|
113 |
+
* Cancellation error message fix
|
114 |
+
|
115 |
= 5.6.9 =
|
116 |
|
117 |
* Improved separator block for Outlook compatibility
|
unsubscription/unsubscription.php
CHANGED
@@ -31,32 +31,29 @@ class NewsletterUnsubscription extends NewsletterModule {
|
|
31 |
|
32 |
function hook_wp_loaded() {
|
33 |
global $wpdb;
|
34 |
-
//error_reporting(E_STRICT | E_ALL | E_NOTICE);
|
35 |
|
36 |
switch (Newsletter::instance()->action) {
|
37 |
case 'u':
|
38 |
$user = $this->get_user_from_request();
|
39 |
$email = $this->get_email_from_request();
|
40 |
if ($user == null) {
|
41 |
-
$url = $this->build_message_url(null, '
|
42 |
-
wp_redirect($url);
|
43 |
} else {
|
44 |
$url = $this->build_message_url(null, 'unsubscribe', $user);
|
45 |
-
wp_redirect($url);
|
46 |
}
|
|
|
47 |
die();
|
48 |
break;
|
|
|
49 |
case 'uc':
|
50 |
if ($this->antibot_form_check()) {
|
51 |
$user = $this->unsubscribe();
|
52 |
if ($user->status == 'E') {
|
53 |
$url = $this->build_message_url(null, 'unsubscription_error', $user);
|
54 |
-
wp_redirect($url);
|
55 |
} else {
|
56 |
$url = $this->build_message_url(null, 'unsubscribed', $user);
|
57 |
-
wp_redirect($url);
|
58 |
}
|
59 |
-
|
60 |
} else {
|
61 |
$this->request_to_antibot_form('Unsubscribe');
|
62 |
}
|
@@ -72,7 +69,6 @@ class NewsletterUnsubscription extends NewsletterModule {
|
|
72 |
$this->request_to_antibot_form('Reactivate');
|
73 |
}
|
74 |
die();
|
75 |
-
|
76 |
break;
|
77 |
}
|
78 |
}
|
31 |
|
32 |
function hook_wp_loaded() {
|
33 |
global $wpdb;
|
|
|
34 |
|
35 |
switch (Newsletter::instance()->action) {
|
36 |
case 'u':
|
37 |
$user = $this->get_user_from_request();
|
38 |
$email = $this->get_email_from_request();
|
39 |
if ($user == null) {
|
40 |
+
$url = $this->build_message_url(null, 'unsubscription_error', $user);
|
|
|
41 |
} else {
|
42 |
$url = $this->build_message_url(null, 'unsubscribe', $user);
|
|
|
43 |
}
|
44 |
+
wp_redirect($url);
|
45 |
die();
|
46 |
break;
|
47 |
+
|
48 |
case 'uc':
|
49 |
if ($this->antibot_form_check()) {
|
50 |
$user = $this->unsubscribe();
|
51 |
if ($user->status == 'E') {
|
52 |
$url = $this->build_message_url(null, 'unsubscription_error', $user);
|
|
|
53 |
} else {
|
54 |
$url = $this->build_message_url(null, 'unsubscribed', $user);
|
|
|
55 |
}
|
56 |
+
wp_redirect($url);
|
57 |
} else {
|
58 |
$this->request_to_antibot_form('Unsubscribe');
|
59 |
}
|
69 |
$this->request_to_antibot_form('Reactivate');
|
70 |
}
|
71 |
die();
|
|
|
72 |
break;
|
73 |
}
|
74 |
}
|