Version Description
=
- Fix list selection on first save
=
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.1.6 |
Comparing to | |
See all releases |
Code changes from version 5.1.5 to 5.1.6
- emails/edit.php +21 -19
- plugin.php +2 -2
- readme.txt +5 -1
emails/edit.php
CHANGED
@@ -24,27 +24,29 @@ if ($composer) {
|
|
24 |
}
|
25 |
|
26 |
// Preferences conversions
|
27 |
-
if (
|
28 |
-
|
29 |
-
$options_profile = get_option('newsletter_profile');
|
30 |
-
|
31 |
-
if (empty($controls->data['preferences_status_operator'])) {
|
32 |
-
$email['options']['lists_operator'] = 'or';
|
33 |
-
} else {
|
34 |
-
$email['options']['lists_operator'] = 'and';
|
35 |
-
}
|
36 |
-
$controls->data['options_lists'] = array();
|
37 |
-
$controls->data['options_lists_exclude'] = array();
|
38 |
|
39 |
-
|
40 |
-
$preferences = explode(',', $email['preferences']);
|
41 |
-
$value = empty($email['options']['preferences_status']) ? 'on' : 'off';
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
}
|
50 |
}
|
24 |
}
|
25 |
|
26 |
// Preferences conversions
|
27 |
+
if (!$controls->is_action()) {
|
28 |
+
if (!isset($email['options']['lists'])) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
+
$options_profile = get_option('newsletter_profile');
|
|
|
|
|
31 |
|
32 |
+
if (empty($controls->data['preferences_status_operator'])) {
|
33 |
+
$email['options']['lists_operator'] = 'or';
|
34 |
+
} else {
|
35 |
+
$email['options']['lists_operator'] = 'and';
|
36 |
+
}
|
37 |
+
$controls->data['options_lists'] = array();
|
38 |
+
$controls->data['options_lists_exclude'] = array();
|
39 |
+
|
40 |
+
if (!empty($email['preferences'])) {
|
41 |
+
$preferences = explode(',', $email['preferences']);
|
42 |
+
$value = empty($email['options']['preferences_status']) ? 'on' : 'off';
|
43 |
+
|
44 |
+
foreach ($preferences as $x) {
|
45 |
+
if ($value == 'on') {
|
46 |
+
$controls->data['options_lists'][] = $x;
|
47 |
+
} else {
|
48 |
+
$controls->data['options_lists_exclude'][] = $x;
|
49 |
+
}
|
50 |
}
|
51 |
}
|
52 |
}
|
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.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.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.1.6
|
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.1.6');
|
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.9
|
5 |
-
Stable tag: 5.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,6 +85,10 @@ Thank you, The Newsletter Team
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
== 5.1.5 ==
|
89 |
|
90 |
* Re-confirmation is now allows for unsubscribed and bounced
|
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.9
|
5 |
+
Stable tag: 5.1.6
|
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.1.6 ==
|
89 |
+
|
90 |
+
* Fix list selection on first save
|
91 |
+
|
92 |
== 5.1.5 ==
|
93 |
|
94 |
* Re-confirmation is now allows for unsubscribed and bounced
|