Version Description
- Fixed failed insert on ip null
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.3.8 |
Comparing to | |
See all releases |
Code changes from version 5.3.7 to 5.3.8
- includes/module.php +1 -1
- plugin.php +2 -2
- readme.txt +5 -1
- statistics/statistics.php +2 -0
includes/module.php
CHANGED
@@ -1295,7 +1295,7 @@ class NewsletterModule {
|
|
1295 |
|
1296 |
static function sanitize_ip($ip) {
|
1297 |
if (empty($ip))
|
1298 |
-
return
|
1299 |
return preg_replace('/[^0-9a-fA-F:., ]/', '', $ip);
|
1300 |
}
|
1301 |
|
1295 |
|
1296 |
static function sanitize_ip($ip) {
|
1297 |
if (empty($ip))
|
1298 |
+
return '';
|
1299 |
return preg_replace('/[^0-9a-fA-F:., ]/', '', $ip);
|
1300 |
}
|
1301 |
|
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.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.
|
@@ -14,7 +14,7 @@
|
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
-
define('NEWSLETTER_VERSION', '5.3.
|
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.3.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 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
+
define('NEWSLETTER_VERSION', '5.3.8');
|
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.3.
|
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,10 @@ Thank you, The Newsletter Team
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
93 |
= 5.3.7 =
|
94 |
|
95 |
* Fixed the newsletter deletion with clean up of log tables
|
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.3.8
|
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.3.8 =
|
94 |
+
|
95 |
+
* Fixed failed insert on ip null
|
96 |
+
|
97 |
= 5.3.7 =
|
98 |
|
99 |
* Fixed the newsletter deletion with clean up of log tables
|
statistics/statistics.php
CHANGED
@@ -87,6 +87,8 @@ class NewsletterStatistics extends NewsletterModule {
|
|
87 |
setcookie('newsletter', $user->id . '-' . $user->token, time() + 60 * 60 * 24 * 365, '/');
|
88 |
|
89 |
$is_action = strpos($url, '?na=');
|
|
|
|
|
90 |
|
91 |
if (!$is_action) {
|
92 |
|
87 |
setcookie('newsletter', $user->id . '-' . $user->token, time() + 60 * 60 * 24 * 365, '/');
|
88 |
|
89 |
$is_action = strpos($url, '?na=');
|
90 |
+
|
91 |
+
$ip = $this->get_remote_ip();
|
92 |
|
93 |
if (!$is_action) {
|
94 |
|