Version Description
=
- Fix a database table field size
=
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.0.7 |
Comparing to | |
See all releases |
Code changes from version 5.0.6 to 5.0.7
- plugin.php +25 -6
- readme.txt +6 -2
- subscription/languages/profile-en_US.php +1 -0
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.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.0.
|
18 |
|
19 |
global $wpdb, $newsletter;
|
20 |
|
@@ -137,7 +137,7 @@ class Newsletter extends NewsletterModule {
|
|
137 |
// Here because the upgrade is called by the parent constructor and uses the scheduler
|
138 |
add_filter('cron_schedules', array($this, 'hook_cron_schedules'), 1000);
|
139 |
|
140 |
-
parent::__construct('main', '1.3.
|
141 |
|
142 |
$max = $this->options['scheduler_max'];
|
143 |
if (!is_numeric($max)) {
|
@@ -260,7 +260,7 @@ class Newsletter extends NewsletterModule {
|
|
260 |
`type` varchar(50) NOT NULL DEFAULT '',
|
261 |
`query` longtext,
|
262 |
`editor` tinyint(4) NOT NULL DEFAULT '0',
|
263 |
-
`sex`
|
264 |
`theme` varchar(50) NOT NULL DEFAULT '',
|
265 |
`message_text` longtext,
|
266 |
`preferences` longtext,
|
@@ -607,6 +607,7 @@ class Newsletter extends NewsletterModule {
|
|
607 |
// Before try to send, check the limits.
|
608 |
if (!$test && $this->limits_exceeded()) {
|
609 |
$result = false;
|
|
|
610 |
break;
|
611 |
}
|
612 |
|
@@ -643,7 +644,7 @@ class Newsletter extends NewsletterModule {
|
|
643 |
}
|
644 |
}
|
645 |
|
646 |
-
$r = $this->mail($user->email, $s, array('html' => $m, 'text' => $mt), $headers);
|
647 |
|
648 |
$status = $r ? 0 : 1;
|
649 |
|
@@ -652,6 +653,8 @@ class Newsletter extends NewsletterModule {
|
|
652 |
$this->email_limit--;
|
653 |
$count++;
|
654 |
}
|
|
|
|
|
655 |
$end_time = microtime(true);
|
656 |
|
657 |
if ($count > 0) {
|
@@ -752,10 +755,15 @@ class Newsletter extends NewsletterModule {
|
|
752 |
function register_mail_method($callable) {
|
753 |
$this->mail_method = $callable;
|
754 |
}
|
|
|
|
|
|
|
|
|
|
|
755 |
|
756 |
var $mail_last_error = '';
|
757 |
|
758 |
-
function mail($to, $subject, $message, $headers = null) {
|
759 |
$this->mail_last_error = '';
|
760 |
//$this->logger->debug('mail> To: ' . $to);
|
761 |
//$this->logger->debug('mail> Subject: ' . $subject);
|
@@ -789,6 +797,17 @@ class Newsletter extends NewsletterModule {
|
|
789 |
}
|
790 |
}
|
791 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
792 |
if ($this->mail_method != null) {
|
793 |
//$this->logger->debug('mail> alternative mail method found');
|
794 |
return call_user_func($this->mail_method, $to, $subject, $message, $headers);
|
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.0.7
|
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.0.7');
|
18 |
|
19 |
global $wpdb, $newsletter;
|
20 |
|
137 |
// Here because the upgrade is called by the parent constructor and uses the scheduler
|
138 |
add_filter('cron_schedules', array($this, 'hook_cron_schedules'), 1000);
|
139 |
|
140 |
+
parent::__construct('main', '1.3.2');
|
141 |
|
142 |
$max = $this->options['scheduler_max'];
|
143 |
if (!is_numeric($max)) {
|
260 |
`type` varchar(50) NOT NULL DEFAULT '',
|
261 |
`query` longtext,
|
262 |
`editor` tinyint(4) NOT NULL DEFAULT '0',
|
263 |
+
`sex` varchar(20) NOT NULL DEFAULT '',
|
264 |
`theme` varchar(50) NOT NULL DEFAULT '',
|
265 |
`message_text` longtext,
|
266 |
`preferences` longtext,
|
607 |
// Before try to send, check the limits.
|
608 |
if (!$test && $this->limits_exceeded()) {
|
609 |
$result = false;
|
610 |
+
if ($this->the_mailer != null) $this->the_mailer->flush();
|
611 |
break;
|
612 |
}
|
613 |
|
644 |
}
|
645 |
}
|
646 |
|
647 |
+
$r = $this->mail($user->email, $s, array('html' => $m, 'text' => $mt), $headers, true);
|
648 |
|
649 |
$status = $r ? 0 : 1;
|
650 |
|
653 |
$this->email_limit--;
|
654 |
$count++;
|
655 |
}
|
656 |
+
if ($this->the_mailer != null) $this->the_mailer->flush();
|
657 |
+
|
658 |
$end_time = microtime(true);
|
659 |
|
660 |
if ($count > 0) {
|
755 |
function register_mail_method($callable) {
|
756 |
$this->mail_method = $callable;
|
757 |
}
|
758 |
+
|
759 |
+
var $the_mailer = null;
|
760 |
+
function register_mailer($mailer) {
|
761 |
+
$this->the_mailer = $mailer;
|
762 |
+
}
|
763 |
|
764 |
var $mail_last_error = '';
|
765 |
|
766 |
+
function mail($to, $subject, $message, $headers = null, $enqueue = false) {
|
767 |
$this->mail_last_error = '';
|
768 |
//$this->logger->debug('mail> To: ' . $to);
|
769 |
//$this->logger->debug('mail> Subject: ' . $subject);
|
797 |
}
|
798 |
}
|
799 |
|
800 |
+
if ($this->the_mailer != null) {
|
801 |
+
$r = $this->the_mailer->mail($to, $subject, $message, $headers, $enqueue);
|
802 |
+
if (is_wp_error($r)) {
|
803 |
+
/* @var $r WP_Error */
|
804 |
+
$this->mail_last_error = $r->get_error_message();
|
805 |
+
return false;
|
806 |
+
}
|
807 |
+
return true;
|
808 |
+
}
|
809 |
+
|
810 |
+
|
811 |
if ($this->mail_method != null) {
|
812 |
//$this->logger->debug('mail> alternative mail method found');
|
813 |
return call_user_func($this->mail_method, $to, $subject, $message, $headers);
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Newsletter ===
|
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.8.
|
5 |
-
Stable tag: 5.0.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -85,6 +85,10 @@ Thank you, The Newsletter Team
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
== 5.0.6 ==
|
89 |
|
90 |
* Improved performance with new db indexes
|
1 |
=== Newsletter ===
|
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.8.2
|
5 |
+
Stable tag: 5.0.7
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
== 5.0.7 ==
|
89 |
+
|
90 |
+
* Fix a database table field size
|
91 |
+
|
92 |
== 5.0.6 ==
|
93 |
|
94 |
* Improved performance with new db indexes
|
subscription/languages/profile-en_US.php
CHANGED
@@ -12,6 +12,7 @@ $options['name_rules'] = 0;
|
|
12 |
$options['surname'] = 'Last name';
|
13 |
$options['surname_error'] = 'The last name is not correct';
|
14 |
$options['surname_status'] = 0;
|
|
|
15 |
$options['sex'] = 'I\'m';
|
16 |
|
17 |
$options['privacy'] = 'Subscribing I accept the privacy rules of this site';
|
12 |
$options['surname'] = 'Last name';
|
13 |
$options['surname_error'] = 'The last name is not correct';
|
14 |
$options['surname_status'] = 0;
|
15 |
+
$options['sex_status'] = 0;
|
16 |
$options['sex'] = 'I\'m';
|
17 |
|
18 |
$options['privacy'] = 'Subscribing I accept the privacy rules of this site';
|