Newsletter - Version 5.6.7

Version Description

  • Fixed multilanguage support for service messages template
Download this release

Release Info

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

Code changes from version 5.6.6 to 5.6.7

Files changed (3) hide show
  1. plugin.php +2 -2
  2. readme.txt +5 -1
  3. subscription/subscription.php +3 -3
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.6.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,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.6.6');
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.6.7
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.6.7');
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.6
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.6 =
112
 
113
  * Fixed unsubscription two-steps process message
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.7
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.6.7 =
112
+
113
+ * Fixed multilanguage support for service messages template
114
+
115
  = 5.6.6 =
116
 
117
  * Fixed unsubscription two-steps process message
subscription/subscription.php CHANGED
@@ -819,8 +819,8 @@ class NewsletterSubscription extends NewsletterModule {
819
  * @global type $newsletter
820
  * @return type
821
  */
822
- function mail($to, $subject, $message) {
823
- $options_template = $this->get_options('template');
824
 
825
  $template = trim($options_template['template']);
826
  if (empty($template) || strpos($template, '{message}') === false) {
@@ -909,7 +909,7 @@ class NewsletterSubscription extends NewsletterModule {
909
  }
910
  $subject = $options[$type . '_subject'];
911
 
912
- return $this->mail($user->email, $this->replace($subject, $user), $this->replace($message, $user));
913
  }
914
 
915
  /**
819
  * @global type $newsletter
820
  * @return type
821
  */
822
+ function mail($to, $subject, $message, $language = '') {
823
+ $options_template = $this->get_options('template', $language);
824
 
825
  $template = trim($options_template['template']);
826
  if (empty($template) || strpos($template, '{message}') === false) {
909
  }
910
  $subject = $options[$type . '_subject'];
911
 
912
+ return $this->mail($user->email, $this->replace($subject, $user), $this->replace($message, $user), $this->get_user_language($user));
913
  }
914
 
915
  /**