Newsletter - Version 6.4.3

Version Description

  • Fixed error reported in log on wrong subscription calls
Download this release

Release Info

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

Code changes from version 6.4.2 to 6.4.3

Files changed (4) hide show
  1. main/welcome.php +3 -3
  2. plugin.php +2 -2
  3. readme.txt +5 -1
  4. subscription/subscription.php +23 -25
main/welcome.php CHANGED
@@ -212,9 +212,9 @@ if (empty($page_exists)) {
212
  </div>
213
  <div class="tnp-col-3-boxed">
214
  <p><?php _e('You can also follow us through our social accounts', 'newsletter'); ?> :)</p>
215
- <a href="" target="_blank"><i class="fa fa-facebook fa-3x" style="color:#fff;" aria-hidden="true"></i></a>
216
- <a href="" target="_blank"><i class="fa fa-youtube fa-3x" style="color:#fff; margin-left: 40px;" aria-hidden="true"></i></a>
217
- <a href="" target="_blank"><i class="fa fa-twitter fa-3x" style="color:#fff; margin-left: 40px;" aria-hidden="true"></i></a>
218
 
219
  </div>
220
  <div class="tnp-col-3-boxed">
212
  </div>
213
  <div class="tnp-col-3-boxed">
214
  <p><?php _e('You can also follow us through our social accounts', 'newsletter'); ?> :)</p>
215
+ <a href="" target="_blank"><i class="fab fa-facebook-f fa-3x" style="color:#fff;" aria-hidden="true"></i></a>
216
+ <a href="" target="_blank"><i class="fab fa-youtube fa-3x" style="color:#fff; margin-left: 40px;" aria-hidden="true"></i></a>
217
+ <a href="" target="_blank"><i class="fab fa-twitter fa-3x" style="color:#fff; margin-left: 40px;" aria-hidden="true"></i></a>
218
 
219
  </div>
220
  <div class="tnp-col-3-boxed">
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.4.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.
@@ -28,7 +28,7 @@
28
 
29
  */
30
 
31
- define('NEWSLETTER_VERSION', '6.4.2');
32
 
33
  global $newsletter, $wpdb;
34
 
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.4.3
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.
28
 
29
  */
30
 
31
+ define('NEWSLETTER_VERSION', '6.4.3');
32
 
33
  global $newsletter, $wpdb;
34
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.3.2
5
- Stable tag: 6.4.2
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
@@ -109,6 +109,10 @@ Thank you, The Newsletter Team
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 6.4.2 =
113
 
114
  * Improved the antispam check on subscription
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.3.2
5
+ Stable tag: 6.4.3
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
109
 
110
  == Changelog ==
111
 
112
+ = 6.4.3 =
113
+
114
+ * Fixed error reported in log on wrong subscription calls
115
+
116
  = 6.4.2 =
117
 
118
  * Improved the antispam check on subscription
subscription/subscription.php CHANGED
@@ -327,7 +327,7 @@ class NewsletterSubscription extends NewsletterModule {
327
  case 'subscribe':
328
 
329
  if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
330
- $antibot_logger->fatal('HTTP method invalid');
331
  die('Invalid');
332
  }
333
 
@@ -360,7 +360,7 @@ class NewsletterSubscription extends NewsletterModule {
360
  case 'ajaxsub':
361
 
362
  if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
363
- $antibot_logger->fatal('HTTP method invalid');
364
  die('Invalid');
365
  }
366
 
@@ -665,26 +665,26 @@ class NewsletterSubscription extends NewsletterModule {
665
  return $user;
666
  }
667
 
668
- if ($this->options['multiple'] == 2) {
669
- $lists_changed = false;
670
- if (isset($_REQUEST['nl']) && is_array($_REQUEST['nl'])) {
671
- foreach ($_REQUEST['nl'] as $list_id) {
672
- $list_id = (int) $list_id;
673
- if ($list_id <= 0 || $list_id > NEWSLETTER_LIST_MAX)
674
- continue;
675
- $field = 'list_' . $list_id;
676
- if ($user->$field == 0) {
677
- $lists_changed = true;
678
- break;
679
- }
680
- }
681
- }
682
-
683
- if (!$lists_changed) {
684
- $user->status = 'E';
685
- return $user;
686
- }
687
- }
688
 
689
  // If the subscriber is confirmed, we cannot change his data in double opt in mode, we need to
690
  // temporary store and wait for activation
@@ -1649,9 +1649,7 @@ class NewsletterSubscription extends NewsletterModule {
1649
  $message .= "token: " . $user->token . "\n" .
1650
  "status: " . $user->status . "\n";
1651
  $email = trim($this->options['notify_email']);
1652
- if (empty($email)) {
1653
- $email = get_option('admin_email');
1654
- }
1655
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
1656
  Newsletter::instance()->mail($email, '[' . $blogname . '] ' . $subject, array('text' => $message));
1657
  }
327
  case 'subscribe':
328
 
329
  if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
330
+ //$antibot_logger->fatal('HTTP method invalid');
331
  die('Invalid');
332
  }
333
 
360
  case 'ajaxsub':
361
 
362
  if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
363
+ //$antibot_logger->fatal('HTTP method invalid');
364
  die('Invalid');
365
  }
366
 
665
  return $user;
666
  }
667
 
668
+ // if ($this->options['multiple'] == 2) {
669
+ // $lists_changed = false;
670
+ // if (isset($_REQUEST['nl']) && is_array($_REQUEST['nl'])) {
671
+ // foreach ($_REQUEST['nl'] as $list_id) {
672
+ // $list_id = (int) $list_id;
673
+ // if ($list_id <= 0 || $list_id > NEWSLETTER_LIST_MAX)
674
+ // continue;
675
+ // $field = 'list_' . $list_id;
676
+ // if ($user->$field == 0) {
677
+ // $lists_changed = true;
678
+ // break;
679
+ // }
680
+ // }
681
+ // }
682
+ //
683
+ // if (!$lists_changed) {
684
+ // $user->status = 'E';
685
+ // return $user;
686
+ // }
687
+ // }
688
 
689
  // If the subscriber is confirmed, we cannot change his data in double opt in mode, we need to
690
  // temporary store and wait for activation
1649
  $message .= "token: " . $user->token . "\n" .
1650
  "status: " . $user->status . "\n";
1651
  $email = trim($this->options['notify_email']);
1652
+
 
 
1653
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
1654
  Newsletter::instance()->mail($email, '[' . $blogname . '] ' . $subject, array('text' => $message));
1655
  }