Newsletter - Version 6.5.2

Version Description

  • Fixed image block
  • Newsletter editing page with TinyMCE now saves before sending a test
Download this release

Release Info

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

Code changes from version 6.5.1 to 6.5.2

emails/blocks/image/block.php CHANGED
@@ -42,7 +42,7 @@ $url = $options['url'];
42
  ?>
43
 
44
  <?php if (!empty($url)) { ?>
45
- <a href="<?php echo $media->url ?>" target="_blank"><img src="<?php echo $image ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;"></a>
46
  <?php } else { ?>
47
  <img src="<?php echo $media->url ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;">
48
  <?php } ?>
42
  ?>
43
 
44
  <?php if (!empty($url)) { ?>
45
+ <a href="<?php echo $url ?>" target="_blank"><img src="<?php echo $media->url ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;"></a>
46
  <?php } else { ?>
47
  <img src="<?php echo $media->url ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;">
48
  <?php } ?>
emails/editortinymce.php CHANGED
@@ -8,7 +8,7 @@ $module = NewsletterEmails::instance();
8
 
9
  $email_id = (int) $_GET['id'];
10
 
11
- if ($controls->is_action('save') || $controls->is_action('next')) {
12
 
13
  $email['id'] = $email_id;
14
  $email['message'] = $controls->data['message'];
8
 
9
  $email_id = (int) $_GET['id'];
10
 
11
+ if ($controls->is_action('save') || $controls->is_action('next') || $controls->is_action('test')) {
12
 
13
  $email['id'] = $email_id;
14
  $email['message'] = $controls->data['message'];
includes/TNP.php CHANGED
@@ -251,6 +251,10 @@ class TNP {
251
  } else {
252
  $user['status'] = 'C';
253
  }
 
 
 
 
254
 
255
  $user['token'] = $newsletter->get_token();
256
  $user['updated'] = time();
251
  } else {
252
  $user['status'] = 'C';
253
  }
254
+
255
+ if (!empty($params['language'])) {
256
+ $user['language'] = $params['language'];
257
+ }
258
 
259
  $user['token'] = $newsletter->get_token();
260
  $user['updated'] = time();
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: 6.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.
@@ -28,7 +28,7 @@
28
 
29
  */
30
 
31
- define('NEWSLETTER_VERSION', '6.5.1');
32
 
33
  global $newsletter, $wpdb;
34
 
@@ -692,6 +692,7 @@ class Newsletter extends NewsletterModule {
692
  $r = $mailer->send($message);
693
 
694
  if (!empty($message->error)) {
 
695
  $this->save_sent_message($message);
696
  }
697
 
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: 6.5.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.
28
 
29
  */
30
 
31
+ define('NEWSLETTER_VERSION', '6.5.2');
32
 
33
  global $newsletter, $wpdb;
34
 
692
  $r = $mailer->send($message);
693
 
694
  if (!empty($message->error)) {
695
+ $this->logger->error($message);
696
  $this->save_sent_message($message);
697
  }
698
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.3.2
5
- Stable tag: 6.5.1
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
@@ -109,6 +109,11 @@ Thank you, The Newsletter Team
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
112
  = 6.5.1 =
113
 
114
  * Solved hero block media problem not showing
@@ -127,6 +132,9 @@ Thank you, The Newsletter Team
127
  * Posts block can now specify an offset to skip the first *n* posts
128
  * Fixed the display of multiline title on some blocks (was overlapping)
129
  * Added the excerpt length on Posts block
 
 
 
130
 
131
  = 6.4.8 =
132
 
@@ -138,14 +146,6 @@ Thank you, The Newsletter Team
138
  * Profile saving antispam check
139
  * Fixed hero block (button)
140
  * Added logging on spam checking (enable info lov level to see the spam check results in the logs)
141
- = Next =
142
-
143
- * Removed the shortcodes from generated excerpt for blog post composer block
144
- * New media resize to better fit the email layout standards
145
- * Updated image block
146
- * Added "Excerpt words" field on "Blog Posts" composer block
147
- * Added "Posts offset" field on "Blog Posts" composer block
148
- * Added background color on email
149
 
150
  = 6.4.6 =
151
 
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.3.2
5
+ Stable tag: 6.5.2
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
109
 
110
  == Changelog ==
111
 
112
+ = 6.5.2 =
113
+
114
+ * Fixed image block
115
+ * Newsletter editing page with TinyMCE now saves before sending a test
116
+
117
  = 6.5.1 =
118
 
119
  * Solved hero block media problem not showing
132
  * Posts block can now specify an offset to skip the first *n* posts
133
  * Fixed the display of multiline title on some blocks (was overlapping)
134
  * Added the excerpt length on Posts block
135
+ * Removed the shortcodes from generated excerpt for blog post composer block
136
+ * New media resize to better fit the email layout standards
137
+ * Updated image block
138
 
139
  = 6.4.8 =
140
 
146
  * Profile saving antispam check
147
  * Fixed hero block (button)
148
  * Added logging on spam checking (enable info lov level to see the spam check results in the logs)
 
 
 
 
 
 
 
 
149
 
150
  = 6.4.6 =
151