Newsletter - Version 5.4.1

Version Description

  • Fixed debug notice in the standard widget
  • Gender label fix
  • Fixed the global variable conflict on widget (rare case)
  • CSS fix on widget list field
Download this release

Release Info

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

Code changes from version 5.4.0 to 5.4.1

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.4.0
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.4.0');
18
 
19
  global $wpdb, $newsletter;
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.4.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
  */
15
 
16
  // Used as dummy parameter on css and js links
17
+ define('NEWSLETTER_VERSION', '5.4.1');
18
 
19
  global $wpdb, $newsletter;
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.5
5
- Stable tag: 5.4.0
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -90,6 +90,13 @@ Thank you, The Newsletter Team
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
 
 
93
  = 5.4.0 =
94
 
95
  * Fix lists as dropdown in the widget
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.5
5
+ Stable tag: 5.4.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
90
 
91
  == Changelog ==
92
 
93
+ = 5.4.1 =
94
+
95
+ * Fixed debug notice in the standard widget
96
+ * Gender label fix
97
+ * Fixed the global variable conflict on widget (rare case)
98
+ * CSS fix on widget list field
99
+
100
  = 5.4.0 =
101
 
102
  * Fix lists as dropdown in the widget
subscription/subscription.php CHANGED
@@ -1443,7 +1443,7 @@ global $wpdb;
1443
  }
1444
 
1445
  if (!empty($lists)) {
1446
- $buffer .= '<div class="tnp-lists">';
1447
  if (!empty($attrs['lists_field_label'])) {
1448
  $buffer .= '<label>' . $attrs['lists_field_label'] . '</label>';
1449
  }
1443
  }
1444
 
1445
  if (!empty($lists)) {
1446
+ $buffer .= '<div class="tnp-field tnp-field-lists">';
1447
  if (!empty($attrs['lists_field_label'])) {
1448
  $buffer .= '<label>' . $attrs['lists_field_label'] . '</label>';
1449
  }
users/statistics.php CHANGED
@@ -224,7 +224,7 @@ $controls = new NewsletterControls();
224
  <td><?php echo $female_count->bounced; ?></td>
225
  </tr>
226
  <tr>
227
- <td><?php _e('Female', 'newsletter')?></td>
228
  <td><?php echo $male_count->confirmed; ?></td>
229
  <td><?php echo $male_count->unconfirmed; ?></td>
230
  <td><?php echo $male_count->unsubscribed; ?></td>
224
  <td><?php echo $female_count->bounced; ?></td>
225
  </tr>
226
  <tr>
227
+ <td><?php _e('Male', 'newsletter')?></td>
228
  <td><?php echo $male_count->confirmed; ?></td>
229
  <td><?php echo $male_count->unconfirmed; ?></td>
230
  <td><?php echo $male_count->unsubscribed; ?></td>
widget/minimal.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
- if (!defined('ABSPATH')) exit;
3
- if (version_compare(phpversion(), '5.3', '<')) return;
 
 
4
 
5
  class NewsletterWidgetMinimal extends WP_Widget {
6
 
@@ -9,7 +11,9 @@ class NewsletterWidgetMinimal extends WP_Widget {
9
  }
10
 
11
  function widget($args, $instance) {
12
- global $newsletter;
 
 
13
  extract($args);
14
 
15
  echo $before_widget;
@@ -28,7 +32,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
28
  }
29
 
30
  $options_profile = get_option('newsletter_profile');
31
-
32
 
33
  $form = '<div class="tnp tnp-widget-minimal">';
34
  $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post" onsubmit="return newsletter_check(this)">';
@@ -59,7 +63,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
59
  $instance = array();
60
  }
61
  $profile_options = NewsletterSubscription::instance()->get_options('profile');
62
- $instance = array_merge(array('title' => '', 'text' => '', 'button'=>$profile_options['subscribe'], 'nl'=>array()), $instance);
63
  $options_profile = get_option('newsletter_profile');
64
  if (!is_array($instance['nl'])) {
65
  $instance['nl'] = array();
@@ -99,5 +103,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
99
 
100
  }
101
 
102
- add_action('widgets_init', function() {return register_widget("NewsletterWidgetMinimal");});
 
 
103
  ?>
1
  <?php
2
+ if (!defined('ABSPATH'))
3
+ exit;
4
+ if (version_compare(phpversion(), '5.3', '<'))
5
+ return;
6
 
7
  class NewsletterWidgetMinimal extends WP_Widget {
8
 
11
  }
12
 
13
  function widget($args, $instance) {
14
+
15
+ $newsletter = Newsletter::instance();
16
+
17
  extract($args);
18
 
19
  echo $before_widget;
32
  }
33
 
34
  $options_profile = get_option('newsletter_profile');
35
+
36
 
37
  $form = '<div class="tnp tnp-widget-minimal">';
38
  $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post" onsubmit="return newsletter_check(this)">';
63
  $instance = array();
64
  }
65
  $profile_options = NewsletterSubscription::instance()->get_options('profile');
66
+ $instance = array_merge(array('title' => '', 'text' => '', 'button' => $profile_options['subscribe'], 'nl' => array()), $instance);
67
  $options_profile = get_option('newsletter_profile');
68
  if (!is_array($instance['nl'])) {
69
  $instance['nl'] = array();
103
 
104
  }
105
 
106
+ add_action('widgets_init', function() {
107
+ return register_widget("NewsletterWidgetMinimal");
108
+ });
109
  ?>
widget/standard.php CHANGED
@@ -18,7 +18,7 @@ class NewsletterWidget extends WP_Widget {
18
 
19
  $instance = array_merge(array('lists_layout' => '',
20
  'lists_empty_label' => '',
21
- 'lists_label' => ''), $instance);
22
 
23
  $options_profile = get_option('newsletter_profile');
24
  //$form = NewsletterSubscription::instance()->get_form_javascript();
@@ -127,7 +127,9 @@ class NewsletterWidget extends WP_Widget {
127
  }
128
 
129
  function widget($args, $instance) {
130
- global $newsletter;
 
 
131
  extract($args);
132
 
133
  if (empty($instance))
18
 
19
  $instance = array_merge(array('lists_layout' => '',
20
  'lists_empty_label' => '',
21
+ 'lists_field_label' => ''), $instance);
22
 
23
  $options_profile = get_option('newsletter_profile');
24
  //$form = NewsletterSubscription::instance()->get_form_javascript();
127
  }
128
 
129
  function widget($args, $instance) {
130
+
131
+ $newsletter = Newsletter::instance();
132
+
133
  extract($args);
134
 
135
  if (empty($instance))