MailPoet Newsletters (New) - Version 3.42.2

Version Description

  • 2020-01-07 =
  • Fixed: incorrect subscriber limit being applied to old plans.
Download this release

Release Info

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

Code changes from version 3.42.1 to 3.42.2

lang/mailpoet-ar.mo CHANGED
Binary file
lang/mailpoet-bg_BG.mo CHANGED
Binary file
lang/mailpoet-ca.mo CHANGED
Binary file
lang/mailpoet-cs_CZ.mo CHANGED
Binary file
lang/mailpoet-da_DK.mo CHANGED
Binary file
lang/mailpoet-de_DE.mo CHANGED
Binary file
lang/mailpoet-de_DE_formal.mo CHANGED
Binary file
lang/mailpoet-el.mo CHANGED
Binary file
lang/mailpoet-en_GB.mo CHANGED
Binary file
lang/mailpoet-es_ES.mo CHANGED
Binary file
lang/mailpoet-es_MX.mo CHANGED
Binary file
lang/mailpoet-fa_IR.mo CHANGED
Binary file
lang/mailpoet-fr_CA.mo CHANGED
Binary file
lang/mailpoet-fr_FR.mo CHANGED
Binary file
lang/mailpoet-he_IL.mo CHANGED
Binary file
lang/mailpoet-hu_HU.mo CHANGED
Binary file
lang/mailpoet-it_IT.mo CHANGED
Binary file
lang/mailpoet-ja.mo CHANGED
Binary file
lang/mailpoet-nb_NO.mo CHANGED
Binary file
lang/mailpoet-nl_NL.mo CHANGED
Binary file
lang/mailpoet-pl_PL.mo CHANGED
Binary file
lang/mailpoet-pt_BR.mo CHANGED
Binary file
lang/mailpoet-pt_PT.mo CHANGED
Binary file
lang/mailpoet-ro_RO.mo CHANGED
Binary file
lang/mailpoet-ru_RU.mo CHANGED
Binary file
lang/mailpoet-sq.mo CHANGED
Binary file
lang/mailpoet-sr_RS.mo CHANGED
Binary file
lang/mailpoet-sv_SE.mo CHANGED
Binary file
lang/mailpoet-tr_TR.mo CHANGED
Binary file
lang/mailpoet-vi.mo CHANGED
Binary file
lang/mailpoet-zh_CN.mo CHANGED
Binary file
lang/mailpoet.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
- "POT-Creation-Date: 2020-01-07 10:28:49+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
+ "POT-Creation-Date: 2020-01-07 18:11:15+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
lib/Util/License/Features/Subscribers.php CHANGED
@@ -28,8 +28,10 @@ class Subscribers {
28
  }
29
 
30
  public function check() {
 
 
31
  $subscribers_count = $this->subscribers_repository->getTotalSubscribers();
32
- return $subscribers_count > $this->getSubscribersLimit();
33
  }
34
 
35
  public function hasAPIKey() {
@@ -47,6 +49,8 @@ class Subscribers {
47
  $premium_subscribers_limit = $this->settings->get(self::PREMIUM_SUBSCRIBERS_LIMIT_SETTING_KEY);
48
  if ($has_premium_key && !empty($premium_subscribers_limit)) return (int)$premium_subscribers_limit;
49
 
 
 
50
  $installation_time = strtotime($this->settings->get('installed_at'));
51
  $old_user = $installation_time < strtotime(self::NEW_LIMIT_DATE);
52
  return $old_user ? self::SUBSCRIBERS_OLD_LIMIT : self::SUBSCRIBERS_NEW_LIMIT;
28
  }
29
 
30
  public function check() {
31
+ $limit = $this->getSubscribersLimit();
32
+ if ($limit === false) return false;
33
  $subscribers_count = $this->subscribers_repository->getTotalSubscribers();
34
+ return $subscribers_count > $limit;
35
  }
36
 
37
  public function hasAPIKey() {
49
  $premium_subscribers_limit = $this->settings->get(self::PREMIUM_SUBSCRIBERS_LIMIT_SETTING_KEY);
50
  if ($has_premium_key && !empty($premium_subscribers_limit)) return (int)$premium_subscribers_limit;
51
 
52
+ if ($has_mss_key || $has_premium_key) return false;
53
+
54
  $installation_time = strtotime($this->settings->get('installed_at'));
55
  $old_user = $installation_time < strtotime(self::NEW_LIMIT_DATE);
56
  return $old_user ? self::SUBSCRIBERS_OLD_LIMIT : self::SUBSCRIBERS_NEW_LIMIT;
mailpoet.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  /*
7
  * Plugin Name: MailPoet 3 (New)
8
- * Version: 3.42.1
9
  * Plugin URI: http://www.mailpoet.com
10
  * Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
11
  * Author: MailPoet
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) exit;
19
  */
20
 
21
  $mailpoet_plugin = [
22
- 'version' => '3.42.1',
23
  'filename' => __FILE__,
24
  'path' => dirname(__FILE__),
25
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
5
 
6
  /*
7
  * Plugin Name: MailPoet 3 (New)
8
+ * Version: 3.42.2
9
  * Plugin URI: http://www.mailpoet.com
10
  * Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
11
  * Author: MailPoet
19
  */
20
 
21
  $mailpoet_plugin = [
22
+ 'version' => '3.42.2',
23
  'filename' => __FILE__,
24
  'path' => dirname(__FILE__),
25
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mailpoet, wysija
3
  Tags: email, email marketing, post notification, woocommerce emails, email automation, newsletter, newsletter builder, newsletter subscribers
4
  Requires at least: 4.7
5
  Tested up to: 5.3
6
- Stable tag: 3.42.1
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -161,6 +161,9 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 3.42.1 - 2020-01-07 =
165
  * Fixed: inactive subscriber detection.
166
 
3
  Tags: email, email marketing, post notification, woocommerce emails, email automation, newsletter, newsletter builder, newsletter subscribers
4
  Requires at least: 4.7
5
  Tested up to: 5.3
6
+ Stable tag: 3.42.2
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
161
 
162
  == Changelog ==
163
 
164
+ = 3.42.2 - 2020-01-07 =
165
+ * Fixed: incorrect subscriber limit being applied to old plans.
166
+
167
  = 3.42.1 - 2020-01-07 =
168
  * Fixed: inactive subscriber detection.
169
 
vendor/autoload.php CHANGED
@@ -7,4 +7,4 @@ if (!defined('ABSPATH')) exit;
7
 
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
 
10
- return ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c::getLoader();
7
 
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
 
10
+ return ComposerAutoloaderInit07755d9b66dde14558d4e4692f257e24::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  // autoload_real.php @generated by Composer
7
 
8
- class ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c
9
  {
10
  private static $loader;
11
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit65d049706332f2285f1390c53b413a3c::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit65d049706332f2285f1390c53b413a3c
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit65d049706332f2285f1390c53b413a3c::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire65d049706332f2285f1390c53b413a3c($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire65d049706332f2285f1390c53b413a3c($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
5
 
6
  // autoload_real.php @generated by Composer
7
 
8
+ class ComposerAutoloaderInit07755d9b66dde14558d4e4692f257e24
9
  {
10
  private static $loader;
11
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit07755d9b66dde14558d4e4692f257e24', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit07755d9b66dde14558d4e4692f257e24', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit07755d9b66dde14558d4e4692f257e24::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit07755d9b66dde14558d4e4692f257e24::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire07755d9b66dde14558d4e4692f257e24($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire07755d9b66dde14558d4e4692f257e24($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -7,7 +7,7 @@ namespace Composer\Autoload;
7
  if (!defined('ABSPATH')) exit;
8
 
9
 
10
- class ComposerStaticInit65d049706332f2285f1390c53b413a3c
11
  {
12
  public static $files = array (
13
  '8b5788f18a1505f52461c0f08991d0df' => __DIR__ . '/../..' . '/lib-3rd-party/ArrayColumn.php',
@@ -1664,9 +1664,9 @@ class ComposerStaticInit65d049706332f2285f1390c53b413a3c
1664
  public static function getInitializer(ClassLoader $loader)
1665
  {
1666
  return \Closure::bind(function () use ($loader) {
1667
- $loader->prefixLengthsPsr4 = ComposerStaticInit65d049706332f2285f1390c53b413a3c::$prefixLengthsPsr4;
1668
- $loader->prefixDirsPsr4 = ComposerStaticInit65d049706332f2285f1390c53b413a3c::$prefixDirsPsr4;
1669
- $loader->classMap = ComposerStaticInit65d049706332f2285f1390c53b413a3c::$classMap;
1670
 
1671
  }, null, ClassLoader::class);
1672
  }
7
  if (!defined('ABSPATH')) exit;
8
 
9
 
10
+ class ComposerStaticInit07755d9b66dde14558d4e4692f257e24
11
  {
12
  public static $files = array (
13
  '8b5788f18a1505f52461c0f08991d0df' => __DIR__ . '/../..' . '/lib-3rd-party/ArrayColumn.php',
1664
  public static function getInitializer(ClassLoader $loader)
1665
  {
1666
  return \Closure::bind(function () use ($loader) {
1667
+ $loader->prefixLengthsPsr4 = ComposerStaticInit07755d9b66dde14558d4e4692f257e24::$prefixLengthsPsr4;
1668
+ $loader->prefixDirsPsr4 = ComposerStaticInit07755d9b66dde14558d4e4692f257e24::$prefixDirsPsr4;
1669
+ $loader->classMap = ComposerStaticInit07755d9b66dde14558d4e4692f257e24::$classMap;
1670
 
1671
  }, null, ClassLoader::class);
1672
  }
views/newsletters.html CHANGED
@@ -8,7 +8,7 @@
8
  var mailpoet_update_available = <%= is_mailpoet_update_available ? 'true' : 'false' %>
9
  var mailpoet_listing_per_page = <%= items_per_page %>;
10
  var mailpoet_display_nps_poll = <%= (sent_newsletters_count > 0 and settings.display_nps_poll) ? 'true' : 'false' %>;
11
- var mailpoet_subscribers_limit = <%= subscribers_limit %>;
12
  var mailpoet_subscribers_limit_reached = <%= subscribers_limit_reached ? 'true' : 'false' %>;
13
  var mailpoet_has_api_key = <%= has_api_key ? 'true' : 'false' %>;
14
  var mailpoet_segments = <%= json_encode(segments) %>;
8
  var mailpoet_update_available = <%= is_mailpoet_update_available ? 'true' : 'false' %>
9
  var mailpoet_listing_per_page = <%= items_per_page %>;
10
  var mailpoet_display_nps_poll = <%= (sent_newsletters_count > 0 and settings.display_nps_poll) ? 'true' : 'false' %>;
11
+ var mailpoet_subscribers_limit = <%= subscribers_limit ? subscribers_limit : 'false' %>;
12
  var mailpoet_subscribers_limit_reached = <%= subscribers_limit_reached ? 'true' : 'false' %>;
13
  var mailpoet_has_api_key = <%= has_api_key ? 'true' : 'false' %>;
14
  var mailpoet_segments = <%= json_encode(segments) %>;