Newsletter - Version 5.1.3

Version Description

Download this release

Release Info

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

Code changes from version 5.1.2 to 5.1.3

Files changed (5) hide show
  1. emails/edit.php +5 -1
  2. emails/index.php +1 -4
  3. plugin.php +2 -2
  4. readme.txt +6 -1
  5. users/massive.php +2 -2
emails/edit.php CHANGED
@@ -95,6 +95,10 @@ if ($controls->is_action('test') || $controls->is_action('save') || $controls->i
95
  $email['track'] = $controls->data['track'];
96
  $email['private'] = $controls->data['private'];
97
 
 
 
 
 
98
  foreach ($controls->data as $name => $value) {
99
  if (strpos($name, 'options_') === 0) {
100
  $email['options'][substr($name, 8)] = $value;
@@ -140,7 +144,7 @@ if ($controls->is_action('test') || $controls->is_action('save') || $controls->i
140
 
141
  if (isset($email['options']['sex'])) {
142
  $sex = $email['options']['sex'];
143
- if (is_array($sex)) {
144
  $query .= " and sex in (";
145
  foreach ($sex as $x) {
146
  $query .= "'" . esc_sql((string) $x) . "', ";
95
  $email['track'] = $controls->data['track'];
96
  $email['private'] = $controls->data['private'];
97
 
98
+ // Reset the options
99
+ $email['options'] = array();
100
+ $email['options']['composer'] = $composer;
101
+
102
  foreach ($controls->data as $name => $value) {
103
  if (strpos($name, 'options_') === 0) {
104
  $email['options'][substr($name, 8)] = $value;
144
 
145
  if (isset($email['options']['sex'])) {
146
  $sex = $email['options']['sex'];
147
+ if (is_array($sex) && count($sex)) {
148
  $query .= " and sex in (";
149
  foreach ($sex as $x) {
150
  $query .= "'" . esc_sql((string) $x) . "', ";
emails/index.php CHANGED
@@ -21,10 +21,7 @@ if ($controls->is_action('copy')) {
21
  $email['type'] = 'message';
22
  $email['editor'] = $original->editor;
23
  $email['track'] = $original->track;
24
- if (isset($original->options)) {
25
- $original_options = unserialize($original->options);
26
- $email['options'] = serialize(array('composer' => $original_options['composer']));
27
- }
28
 
29
  Newsletter::instance()->save_email($email);
30
  $controls->messages .= __('Message duplicated.', 'newsletter');
21
  $email['type'] = 'message';
22
  $email['editor'] = $original->editor;
23
  $email['track'] = $original->track;
24
+ $email['options'] = $original->options;
 
 
 
25
 
26
  Newsletter::instance()->save_email($email);
27
  $controls->messages .= __('Message duplicated.', 'newsletter');
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.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,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.1.2');
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.3
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.3');
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.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -87,6 +87,11 @@ Thank you, The Newsletter Team
87
 
88
  == NEXT ==
89
 
 
 
 
 
 
90
  * Improved the speed report on status panel
91
  * Removed the obsolete diagnostic panel
92
  * Removed obsolete code
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.3
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
87
 
88
  == NEXT ==
89
 
90
+ * Fixed newsletter duplication which was loosing the editor type
91
+ * Fixed gender saving on targeting
92
+
93
+ == 5.1.2 ==
94
+
95
  * Improved the speed report on status panel
96
  * Removed the obsolete diagnostic panel
97
  * Removed obsolete code
users/massive.php CHANGED
@@ -48,12 +48,12 @@ if ($controls->is_action('remove_all')) {
48
 
49
  if ($controls->is_action('list_add')) {
50
  $r = $wpdb->query("update " . NEWSLETTER_USERS_TABLE . " set list_" . ((int) $controls->data['list']) . "=1");
51
- $controls->messages = $r . ' ' . __('added to the list', 'newsletter') . ' ' . $controls->data['list'];
52
  }
53
 
54
  if ($controls->is_action('list_remove')) {
55
  $r = $wpdb->query("update " . NEWSLETTER_USERS_TABLE . " set list_" . ((int) $controls->data['list']) . "=0");
56
- $controls->messages = $r . ' ' . __('removed to the list', 'newsletter') . ' ' . $controls->data['list'];
57
  }
58
 
59
  if ($controls->is_action('list_delete')) {
48
 
49
  if ($controls->is_action('list_add')) {
50
  $r = $wpdb->query("update " . NEWSLETTER_USERS_TABLE . " set list_" . ((int) $controls->data['list']) . "=1");
51
+ $controls->messages = $r . ' ' . __('added to list', 'newsletter') . ' ' . $controls->data['list'];
52
  }
53
 
54
  if ($controls->is_action('list_remove')) {
55
  $r = $wpdb->query("update " . NEWSLETTER_USERS_TABLE . " set list_" . ((int) $controls->data['list']) . "=0");
56
+ $controls->messages = $r . ' ' . __('removed from list', 'newsletter') . ' ' . $controls->data['list'];
57
  }
58
 
59
  if ($controls->is_action('list_delete')) {