Newsletter - Version 5.6.2

Version Description

  • readme.txt improvements
  • Fixed subscribe URL for blogs with WPML and permalinks disabled
Download this release

Release Info

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

Code changes from version 5.6.1 to 5.6.2

includes/module.php CHANGED
@@ -1204,6 +1204,10 @@ class NewsletterModule {
1204
  }
1205
  return $url;
1206
  }
 
 
 
 
1207
 
1208
  function clean_stats_table() {
1209
  global $wpdb;
1204
  }
1205
  return $url;
1206
  }
1207
+
1208
+ function get_subscribe_url() {
1209
+ return $this->build_action_url('s');
1210
+ }
1211
 
1212
  function clean_stats_table() {
1213
  global $wpdb;
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.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.6.1');
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.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
  */
15
 
16
  // Used as dummy parameter on css and js links
17
+ define('NEWSLETTER_VERSION', '5.6.2');
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
3
  Requires at least: 3.4.0
4
  Tested up to: 4.9.7
5
- Stable tag: 5.6.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -12,27 +12,16 @@ Add a real newsletter system to your blog. For free. With unlimited newsletters
12
  Newsletter is a **real newsletter system** for your WordPress blog: perfect for list building, you can easily create,
13
  send and track e-mails, headache-free. It just works out of box!
14
 
15
- = GDPR =
16
-
17
- The Newsletter Plugin provides all the technical tools needed to achieve GDPR compliancy and
18
- we're continuously working to improve them and to give support even for specific
19
- use cases.
20
-
21
- The plugin does not collect users' own subscribers data, nor it has any access to those data:
22
- hence, we are not a data processor, so a data processing agreement is not needed.
23
-
24
- Anyway if you configure the plugin to use external services (usually an external mail
25
- delivery service) you should check with that service if some sort of agreement is required.
26
-
27
  = Main Features =
28
 
29
  * **Unlimited subscribers** with statistics
30
  * **Unlimited newsletter** with tracking
31
- * Multilist ready with list combinations targeting (all in, at least one, exclusions, ...)
32
- * Subscription spam check with domain/ip black lists, Akismet, captcha
33
  * **Delivery speed** fine control (from 12 emails per hour to as much as your blog can manage)
 
34
  * [GDPR ready](https://www.thenewsletterplugin.com/documentation/gdpr-compliancy)
35
- * **Responsive email Drag & Drop composer**
 
36
  * Customizable **subscription widget**, **page** or **custom form**
37
  * Wordpress User Registration **seamless integration**
38
  * **Single** And **Double Opt-In** plus privacy checkbox for EU laws compliance
@@ -41,11 +30,23 @@ delivery service) you should check with that service if some sort of agreement i
41
  * SMTP-Ready
42
  * Customizable Themes
43
  * All messages are **fully translatable** from administration panels (no .po/.mo file to edit)
44
- * Diagnostics Panel to check your blog mailing capability
45
  * **Compatible with every SMTP plugin**: Postman, WP Mail SMTP, Easy WP SMTP, Easy SMTP Mail, WP Mail Bank, ...
46
- * Subscribers massive **import** from file
47
  * Newsletter with Html and Text message versions
48
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  = Integration with WordPress registration =
50
 
51
  * Newsletter subscription check box on standard WordPress registration form
@@ -107,9 +108,15 @@ Thank you, The Newsletter Team
107
 
108
  == Changelog ==
109
 
110
- = NEXT =
 
 
 
 
 
111
 
112
  * Fix debug notice on profile URL when no privacy page is set on WP
 
113
 
114
  = 5.6.0 =
115
 
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.7
5
+ Stable tag: 5.6.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
12
  Newsletter is a **real newsletter system** for your WordPress blog: perfect for list building, you can easily create,
13
  send and track e-mails, headache-free. It just works out of box!
14
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  = Main Features =
16
 
17
  * **Unlimited subscribers** with statistics
18
  * **Unlimited newsletter** with tracking
19
+ * **Subscription spam check** with domain/ip black lists, Akismet, captcha
 
20
  * **Delivery speed** fine control (from 12 emails per hour to as much as your blog can manage)
21
+ * [WPML ready](https://www.thenewsletterplugin.com/documentation/multilanguage)
22
  * [GDPR ready](https://www.thenewsletterplugin.com/documentation/gdpr-compliancy)
23
+ * **Multi-list targeting** with list combinations like all in, at least one, not in and so on
24
+ * **Drag and drop composer** with responsive email layout
25
  * Customizable **subscription widget**, **page** or **custom form**
26
  * Wordpress User Registration **seamless integration**
27
  * **Single** And **Double Opt-In** plus privacy checkbox for EU laws compliance
30
  * SMTP-Ready
31
  * Customizable Themes
32
  * All messages are **fully translatable** from administration panels (no .po/.mo file to edit)
33
+ * **Status panel** to check your blog mailing capability and configuration
34
  * **Compatible with every SMTP plugin**: Postman, WP Mail SMTP, Easy WP SMTP, Easy SMTP Mail, WP Mail Bank, ...
35
+ * **Subscribers import** from file
36
  * Newsletter with Html and Text message versions
37
 
38
+ = GDPR =
39
+
40
+ The Newsletter Plugin provides all the technical tools needed to achieve GDPR compliancy and
41
+ we're continuously working to improve them and to give support even for specific
42
+ use cases.
43
+
44
+ The plugin does not collect users' own subscribers data, nor it has any access to those data:
45
+ hence, we are not a data processor, so a data processing agreement is not needed.
46
+
47
+ Anyway if you configure the plugin to use external services (usually an external mail
48
+ delivery service) you should check with that service if some sort of agreement is required.
49
+
50
  = Integration with WordPress registration =
51
 
52
  * Newsletter subscription check box on standard WordPress registration form
108
 
109
  == Changelog ==
110
 
111
+ = 5.6.2 =
112
+
113
+ * readme.txt improvements
114
+ * Fixed subscribe URL for blogs with WPML and permalinks disabled
115
+
116
+ = 5.6.1 =
117
 
118
  * Fix debug notice on profile URL when no privacy page is set on WP
119
+ * Fixed export list filter
120
 
121
  = 5.6.0 =
122
 
subscription/subscription.php CHANGED
@@ -1538,7 +1538,7 @@ class NewsletterSubscription extends NewsletterModule {
1538
 
1539
  $form = do_shortcode($form);
1540
 
1541
- $action = home_url('/') . '?na=s';
1542
 
1543
  if (stripos($form, '<form') === false) {
1544
  $form = '<form method="post" action="' . $action . '">' . $form . '</form>';
@@ -1620,7 +1620,7 @@ class NewsletterSubscription extends NewsletterModule {
1620
 
1621
  $form = '';
1622
  $form .= '<div class="tnp tnp-subscription-minimal ' . $attrs['class'] . '">';
1623
- $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post">';
1624
  if (isset($attrs['lists'])) {
1625
  $arr = explode(',', $attrs['lists']);
1626
  foreach ($arr as $a) {
@@ -1693,7 +1693,7 @@ class NewsletterSubscription extends NewsletterModule {
1693
  // Compatibility check
1694
  if (stripos($message, '<form') !== false) {
1695
  $message .= $this->get_form_javascript();
1696
- $message = str_ireplace('<form', '<form method="post" action="' . esc_attr(home_url('/')) . '?na=s" onsubmit="return newsletter_check(this)"', $message);
1697
  } else {
1698
 
1699
  if (strpos($message, '{subscription_form') === false) {
1538
 
1539
  $form = do_shortcode($form);
1540
 
1541
+ $action = $this->build_action_url('s');
1542
 
1543
  if (stripos($form, '<form') === false) {
1544
  $form = '<form method="post" action="' . $action . '">' . $form . '</form>';
1620
 
1621
  $form = '';
1622
  $form .= '<div class="tnp tnp-subscription-minimal ' . $attrs['class'] . '">';
1623
+ $form .= '<form action="' . esc_attr($this->build_action_url('s')) . '" method="post">';
1624
  if (isset($attrs['lists'])) {
1625
  $arr = explode(',', $attrs['lists']);
1626
  foreach ($arr as $a) {
1693
  // Compatibility check
1694
  if (stripos($message, '<form') !== false) {
1695
  $message .= $this->get_form_javascript();
1696
+ $message = str_ireplace('<form', '<form method="post" action="' . esc_attr($this->get_subscribe_url()) . '" onsubmit="return newsletter_check(this)"', $message);
1697
  } else {
1698
 
1699
  if (strpos($message, '{subscription_form') === false) {
widget/standard.php CHANGED
@@ -77,7 +77,7 @@ class NewsletterWidget extends WP_Widget {
77
  }
78
  }
79
  } else {
80
- $buffer = str_ireplace('<form', '<form method="post" action="' . esc_attr(home_url('/') . '?na=s') . '" onsubmit="return newsletter_check(this)"', $buffer);
81
  $buffer = str_ireplace('</form>', '<input type="hidden" name="nr" value="widget"/></form>', $buffer);
82
  }
83
 
@@ -103,7 +103,7 @@ class NewsletterWidget extends WP_Widget {
103
  ?>
104
  <p>
105
  <label for="<?php echo $this->get_field_id('title'); ?>">
106
- Title:
107
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
108
  </label>
109
 
77
  }
78
  }
79
  } else {
80
+ $buffer = str_ireplace('<form', '<form method="post" action="' . esc_attr($newsletter->get_subscribe_url()) . '" onsubmit="return newsletter_check(this)"', $buffer);
81
  $buffer = str_ireplace('</form>', '<input type="hidden" name="nr" value="widget"/></form>', $buffer);
82
  }
83
 
103
  ?>
104
  <p>
105
  <label for="<?php echo $this->get_field_id('title'); ?>">
106
+ <?php _e('Title')?>:
107
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
108
  </label>
109