MailPoet Newsletters (Previous) - Version 2.13

Version Description

  • 2019-11-05 =
  • Added a blacklist for email addresses that should not be receiving any emails;
  • Fixed PHP 7.3 support.
Download this release

Release Info

Developer wysija
Plugin Icon 128x128 MailPoet Newsletters (Previous)
Version 2.13
Comparing to
See all releases

Code changes from version 2.12 to 2.13

core/base.php CHANGED
@@ -19,7 +19,7 @@ class WYSIJA_object{
19
  * Static variable holding core MailPoet's version
20
  * @var array
21
  */
22
- static $version = '2.12';
23
 
24
  function __construct(){}
25
 
19
  * Static variable holding core MailPoet's version
20
  * @var array
21
  */
22
+ static $version = '2.13';
23
 
24
  function __construct(){}
25
 
helpers/blacklist.php CHANGED
@@ -3,21 +3,32 @@
3
  class Blacklist {
4
  const SALT = 'mailpoet';
5
 
6
- private $blacklist = array(
7
  'e60c6e0e73997c92d4ceac78a6b6cbbe6249244c4106a3c31de421fc50370ecd' => 1,
 
 
 
 
 
 
 
 
 
 
8
  );
9
 
10
  public function isBlacklisted($email) {
11
  $hashed_email = $this->hash($email);
12
- return !empty($this->blacklist[$hashed_email]);
 
 
 
 
 
 
13
  }
14
 
15
  public function hash($email) {
16
  return hash('sha256', $email . self::SALT);
17
  }
18
-
19
- public function addEmail($email) {
20
- $hashed_email = $this->hash($email);
21
- $this->blacklist[$hashed_email] = 1;
22
- }
23
  }
3
  class Blacklist {
4
  const SALT = 'mailpoet';
5
 
6
+ private $email_blacklist = array(
7
  'e60c6e0e73997c92d4ceac78a6b6cbbe6249244c4106a3c31de421fc50370ecd' => 1,
8
+ '4a7fb8fba0a800ad5cf324704d3510d019586765aef6d5081fa5aed3f93d9dce' => 1,
9
+ '7151c278028263ace958b66616e69a438f23e5058a5df42ed734e9e6704f8332' => 1,
10
+ );
11
+
12
+ private $domain_blacklist = array(
13
+ '2ea570cf0c440b2ec7d6e1335108625a5f62162b2116a25c9c909dc5b54c213f' => 1,
14
+ '1e10eb32b615217baa4d8f54191891e107851a2057d1128f067f1df096896e45' => 1,
15
+ 'dc2bfb04e38d3c25c8a465a5fed841a1cb1685044d12241efe01f0fc044f2182' => 1,
16
+ 'f17c13fe5a1d8cd2e78a04528377cc607881ad12b6295b6fa8b6a789d1d04c10' => 1,
17
+ '813cbef72da3542e783470ecd62589bceb3883d15ab2435ec2486f9762602b8c' => 1,
18
  );
19
 
20
  public function isBlacklisted($email) {
21
  $hashed_email = $this->hash($email);
22
+ if (isset($this->email_blacklist[$hashed_email])) {
23
+ return true;
24
+ }
25
+ $email_parts = explode('@', $email);
26
+ $domain = end($email_parts);
27
+ $hashed_domain = $this->hash($domain);
28
+ return isset($this->domain_blacklist[$hashed_domain]);
29
  }
30
 
31
  public function hash($email) {
32
  return hash('sha256', $email . self::SALT);
33
  }
 
 
 
 
 
34
  }
helpers/render_engine.php CHANGED
@@ -40,7 +40,7 @@ class WYSIJA_help_render_engine extends WYSIJA_object {
40
  const _LAST_COL = 'IS_LAST_COL';
41
  const _FIRST_ROW = 'IS_FIRST_ROW';
42
  const _LAST_ROW = 'IS_LAST_ROW';
43
- const _VAR = '([\$#])([\w-_\.]+)';
44
  const _MODIFIER = "(\|{0,1}[^}]*)";
45
 
46
  function __construct () { }
40
  const _LAST_COL = 'IS_LAST_COL';
41
  const _FIRST_ROW = 'IS_FIRST_ROW';
42
  const _LAST_ROW = 'IS_LAST_ROW';
43
+ const _VAR = '([\$#])([\w\-_\.]+)';
44
  const _MODIFIER = "(\|{0,1}[^}]*)";
45
 
46
  function __construct () { }
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailPoet 2
4
  Plugin URI: http://www.mailpoet.com/
5
  Description: Create and send newsletters or automated emails. Capture subscribers with a widget. Import and manage your lists. This version is being replaced by MailPoet 3. Support offered to Premium customers only. Updates are limited to security issues.
6
- Version: 2.12
7
  Author: MailPoet
8
  Author URI: http://www.mailpoet.com/
9
  License: GPLv2 or later
3
  Plugin Name: MailPoet 2
4
  Plugin URI: http://www.mailpoet.com/
5
  Description: Create and send newsletters or automated emails. Capture subscribers with a widget. Import and manage your lists. This version is being replaced by MailPoet 3. Support offered to Premium customers only. Updates are limited to security issues.
6
+ Version: 2.13
7
  Author: MailPoet
8
  Author URI: http://www.mailpoet.com/
9
  License: GPLv2 or later
languages/wysija-newsletters-el.mo CHANGED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wysija
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 3.5
5
  Tested up to: 5.2
6
- Stable tag: 2.12
7
  Send newsletters post notifications or autoresponders from WordPress easily, and beautifully. Start to capture subscribers with our widget now.
8
 
9
  == Description ==
@@ -113,6 +113,10 @@ Our [support site](https://www.mailpoet.com/support) has plenty of articles and
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = 2.12 - 2019-07-11 =
117
  * Added a blacklist for email addresses that should not be receiving any emails.
118
 
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 3.5
5
  Tested up to: 5.2
6
+ Stable tag: 2.13
7
  Send newsletters post notifications or autoresponders from WordPress easily, and beautifully. Start to capture subscribers with our widget now.
8
 
9
  == Description ==
113
 
114
  == Changelog ==
115
 
116
+ = 2.13 - 2019-11-05 =
117
+ * Added a blacklist for email addresses that should not be receiving any emails;
118
+ * Fixed PHP 7.3 support.
119
+
120
  = 2.12 - 2019-07-11 =
121
  * Added a blacklist for email addresses that should not be receiving any emails.
122