Newsletter - Version 5.5.9

Version Description

  • Fixed a possible debug notice on subscription without a dedicated page configured
  • Fixed minimal widget with WPML language selector without permalink
Download this release

Release Info

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

Code changes from version 5.5.8 to 5.5.9

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.5.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.
@@ -14,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.5.8');
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.5.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.
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
+ define('NEWSLETTER_VERSION', '5.5.9');
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.5.8
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -107,6 +107,11 @@ Thank you, The Newsletter Team
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
110
  = 5.5.8 =
111
 
112
  * Fixed multilanguage text on profile page
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.5.9
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
107
 
108
  == Changelog ==
109
 
110
+ = 5.5.9 =
111
+
112
+ * Fixed a possible debug notice on subscription without a dedicated page configured
113
+ * Fixed minimal widget with WPML language selector without permalink
114
+
115
  = 5.5.8 =
116
 
117
  * Fixed multilanguage text on profile page
subscription/page.php CHANGED
@@ -17,7 +17,7 @@ if (!defined('ABSPATH')) exit;
17
  $module = NewsletterSubscription::instance();
18
  $user = $module->get_user_from_request(true);
19
  $message_key = $module->get_message_key_from_request();
20
- $message = apply_filters('newsletter_page_text', '', $message_key);
21
  $options = $module->get_options('', $module->get_user_language($user));
22
  if (!$message) {
23
  $message = $options[$message_key . '_text'];
17
  $module = NewsletterSubscription::instance();
18
  $user = $module->get_user_from_request(true);
19
  $message_key = $module->get_message_key_from_request();
20
+ $message = apply_filters('newsletter_page_text', '', $message_key, $user);
21
  $options = $module->get_options('', $module->get_user_language($user));
22
  if (!$message) {
23
  $message = $options[$message_key . '_text'];
unsubscription/unsubscription.php CHANGED
@@ -31,6 +31,7 @@ class NewsletterUnsubscription extends NewsletterModule {
31
 
32
  function hook_wp_loaded() {
33
  global $wpdb;
 
34
 
35
  switch (Newsletter::instance()->action) {
36
  case 'u':
@@ -147,8 +148,10 @@ class NewsletterUnsubscription extends NewsletterModule {
147
  return $text;
148
  }
149
 
150
- function hook_newsletter_page_text($text, $key, $user) {
151
 
 
 
152
  $options = $this->get_options('', $this->get_current_language($user));
153
  if ($key == 'unsubscribe') {
154
  return $options['unsubscribe_text'];
31
 
32
  function hook_wp_loaded() {
33
  global $wpdb;
34
+ //error_reporting(E_STRICT | E_ALL | E_NOTICE);
35
 
36
  switch (Newsletter::instance()->action) {
37
  case 'u':
148
  return $text;
149
  }
150
 
151
+ function hook_newsletter_page_text($text, $key, $user = null) {
152
 
153
+ if (!$user) return $text;
154
+
155
  $options = $this->get_options('', $this->get_current_language($user));
156
  if ($key == 'unsubscribe') {
157
  return $options['unsubscribe_text'];
widget/minimal.php CHANGED
@@ -37,7 +37,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
37
 
38
 
39
  $form = '<div class="tnp tnp-widget-minimal">';
40
- $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post" onsubmit="return newsletter_check(this)">';
41
  if (isset($instance['nl']) && is_array($instance['nl'])) {
42
  foreach ($instance['nl'] as $a) {
43
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";
37
 
38
 
39
  $form = '<div class="tnp tnp-widget-minimal">';
40
+ $form .= '<form class="tnp-form" action="' . $newsletter->build_action_url('s') . '" method="post" onsubmit="return newsletter_check(this)">';
41
  if (isset($instance['nl']) && is_array($instance['nl'])) {
42
  foreach ($instance['nl'] as $a) {
43
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";