Newsletter - Version 6.8.9

Version Description

  • Welcome and activation messages test sent using the admin language
  • Added RTL/LTR button on composer text block
Download this release

Release Info

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

Code changes from version 6.8.8 to 6.8.9

includes/fields.php CHANGED
@@ -149,7 +149,7 @@ class NewsletterFields {
149
 
150
  if (version_compare($wp_version, '4.8', '>=')) {
151
  echo '<script>wp.editor.remove("options-', $name, '");';
152
- echo 'wp.editor.initialize("options-', $name, '", { tinymce: {content_style: "body {background-color: #f4f4f4;}", toolbar1: "undo redo | formatselect fontselect fontsizeselect | bold italic forecolor backcolor | link unlink | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | wp_add_media | charmap", fontsize_formats: "11px 12px 14px 16px 18px 24px 36px 48px", plugins: "link textcolor colorpicker lists wordpress charmap", default_link_target: "_blank", relative_urls : false, convert_urls: false}});</script>';
153
  }
154
  $this->_description($attrs);
155
  $this->_close();
149
 
150
  if (version_compare($wp_version, '4.8', '>=')) {
151
  echo '<script>wp.editor.remove("options-', $name, '");';
152
+ echo 'wp.editor.initialize("options-', $name, '", { tinymce: {content_style: "body {background-color: #f4f4f4;}", toolbar1: "undo redo | formatselect fontselect fontsizeselect | bold italic forecolor backcolor | link unlink | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | wp_add_media | charmap | rtl ltr", fontsize_formats: "11px 12px 14px 16px 18px 24px 36px 48px", plugins: "link textcolor colorpicker lists wordpress charmap directionality", default_link_target: "_blank", relative_urls : false, convert_urls: false}});</script>';
153
  }
154
  $this->_description($attrs);
155
  $this->_close();
includes/notification.html CHANGED
@@ -1,7 +1,7 @@
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title>New subscriber</title>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
  <style>
@@ -11,8 +11,7 @@
11
  </style>
12
  </head>
13
  <body>
14
- <p>Hi,</p>
15
- <p>a new subscriber has just been registered.</p>
16
 
17
  <table cellpadding="7" cellspacing="0" border="1">
18
  <tr>
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
+ <title>Subscriber details</title>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
  <style>
11
  </style>
12
  </head>
13
  <body>
14
+ <p>Subscriber details:</p>
 
15
 
16
  <table cellpadding="7" cellspacing="0" border="1">
17
  <tr>
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.8.8
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.
@@ -35,7 +35,7 @@ if (version_compare(phpversion(), '5.6', '<')) {
35
  return;
36
  }
37
 
38
- define('NEWSLETTER_VERSION', '6.8.7');
39
 
40
  global $newsletter, $wpdb;
41
 
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.8.9
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.
35
  return;
36
  }
37
 
38
+ define('NEWSLETTER_VERSION', '6.8.9');
39
 
40
  global $newsletter, $wpdb;
41
 
readme.txt CHANGED
@@ -113,6 +113,11 @@ Thank you, The Newsletter Team
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
116
  = 6.8.8 =
117
 
118
  * Fixed cancellation notification for admins
113
 
114
  == Changelog ==
115
 
116
+ = 6.8.9 =
117
+
118
+ * Welcome and activation messages test sent using the admin language
119
+ * Added RTL/LTR button on composer text block
120
+
121
  = 6.8.8 =
122
 
123
  * Fixed cancellation notification for admins
subscription/options.php CHANGED
@@ -72,6 +72,7 @@ if ($controls->is_action()) {
72
  $addresses = array();
73
  foreach ($users as &$user) {
74
  $addresses[] = $user->email;
 
75
  $res = $module->send_message('confirmation', $user);
76
  if (!$res) {
77
  $controls->errors = 'The email address ' . $user->email . ' failed.';
@@ -93,6 +94,8 @@ if ($controls->is_action()) {
93
  $addresses = array();
94
  foreach ($users as $user) {
95
  $addresses[] = $user->email;
 
 
96
  $res = $module->send_message('confirmed', $user);
97
  if (!$res) {
98
  $controls->errors = 'The email address ' . $user->email . ' failed.';
72
  $addresses = array();
73
  foreach ($users as &$user) {
74
  $addresses[] = $user->email;
75
+ $user->language = $current_language;
76
  $res = $module->send_message('confirmation', $user);
77
  if (!$res) {
78
  $controls->errors = 'The email address ' . $user->email . ' failed.';
94
  $addresses = array();
95
  foreach ($users as $user) {
96
  $addresses[] = $user->email;
97
+ // Force the language to send the message coherently with the current panel view
98
+ $user->language = $current_language;
99
  $res = $module->send_message('confirmed', $user);
100
  if (!$res) {
101
  $controls->errors = 'The email address ' . $user->email . ' failed.';
subscription/subscription.php CHANGED
@@ -1734,7 +1734,7 @@ class NewsletterSubscription extends NewsletterModule {
1734
 
1735
  $message = $this->generate_admin_notification_message($user);
1736
  $email = trim($this->options['notify_email']);
1737
- $subject = $this->generate_admin_notification_subject('Newsletter subscription');
1738
 
1739
  Newsletter::instance()->mail($email, $subject, array('html' => $message));
1740
  }
1734
 
1735
  $message = $this->generate_admin_notification_message($user);
1736
  $email = trim($this->options['notify_email']);
1737
+ $subject = $this->generate_admin_notification_subject('New subscription');
1738
 
1739
  Newsletter::instance()->mail($email, $subject, array('html' => $message));
1740
  }
unsubscription/unsubscription.php CHANGED
@@ -120,7 +120,7 @@ class NewsletterUnsubscription extends NewsletterModule {
120
 
121
  $message = $this->generate_admin_notification_message($user);
122
  $email = trim(get_option('admin_email'));
123
- $subject = $this->generate_admin_notification_subject('Newsletter subscription cacellation');
124
 
125
  Newsletter::instance()->mail($email, $subject, array('html' => $message));
126
  }
120
 
121
  $message = $this->generate_admin_notification_message($user);
122
  $email = trim(get_option('admin_email'));
123
+ $subject = $this->generate_admin_notification_subject('New cancellation');
124
 
125
  Newsletter::instance()->mail($email, $subject, array('html' => $message));
126
  }