MailPoet Newsletters (New) - Version 3.47.3

Version Description

  • 2020-06-03 =
  • Fixed: a bug which caused old posts to be sent.
Download this release

Release Info

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

Code changes from version 3.47.2 to 3.47.3

generated/doctrine-metadata/558c74e73f787bb584db1e46bc0bd0fa CHANGED
Binary file
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-06-02 07:30:11+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-06-03 13:11:07+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/Entities/NewsletterPostEntity.php CHANGED
@@ -22,13 +22,13 @@ class NewsletterPostEntity {
22
  use SafeToOneAssociationLoadTrait;
23
 
24
  /**
25
- * @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterEntity", inversedBy="newsletterSegments")
26
  * @var NewsletterEntity|null
27
  */
28
  private $newsletter;
29
 
30
  /**
31
- * @ORM\Column(type="int")
32
  * @var int
33
  */
34
  private $postId;
22
  use SafeToOneAssociationLoadTrait;
23
 
24
  /**
25
+ * @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterEntity")
26
  * @var NewsletterEntity|null
27
  */
28
  private $newsletter;
29
 
30
  /**
31
+ * @ORM\Column(type="integer")
32
  * @var int
33
  */
34
  private $postId;
lib/Newsletter/AutomatedLatestContent.php CHANGED
@@ -5,6 +5,7 @@ namespace MailPoet\Newsletter;
5
  if (!defined('ABSPATH')) exit;
6
 
7
 
 
8
  use MailPoet\Logging\LoggerFactory;
9
  use MailPoet\Newsletter\Editor\Transformer;
10
  use MailPoet\WP\Functions as WPFunctions;
@@ -90,11 +91,11 @@ class AutomatedLatestContent {
90
  // the query.
91
  $parameters['suppress_filters'] = false;
92
 
93
- if ($newerThanTimestamp) {
94
  $parameters['date_query'] = [
95
  [
96
  'column' => 'post_date',
97
- 'after' => $newerThanTimestamp,
98
  ],
99
  ];
100
  }
5
  if (!defined('ABSPATH')) exit;
6
 
7
 
8
+ use DateTimeInterface;
9
  use MailPoet\Logging\LoggerFactory;
10
  use MailPoet\Newsletter\Editor\Transformer;
11
  use MailPoet\WP\Functions as WPFunctions;
91
  // the query.
92
  $parameters['suppress_filters'] = false;
93
 
94
+ if ($newerThanTimestamp instanceof DateTimeInterface) {
95
  $parameters['date_query'] = [
96
  [
97
  'column' => 'post_date',
98
+ 'after' => $newerThanTimestamp->format('Y-m-d H:i:s'),
99
  ],
100
  ];
101
  }
lib/Newsletter/Renderer/Blocks/Renderer.php CHANGED
@@ -135,7 +135,7 @@ class Renderer {
135
  if ($parent instanceof NewsletterEntity) {
136
  $newsletterId = $parent->getId();
137
 
138
- $lastPost = $this->newsletterPostsRepository->findOneBy(['newsletter' => $newsletter], ['createdAt' => 'desc']);
139
  if ($lastPost instanceof NewsletterPostEntity) {
140
  $newerThanTimestamp = $lastPost->getCreatedAt();
141
  }
135
  if ($parent instanceof NewsletterEntity) {
136
  $newsletterId = $parent->getId();
137
 
138
+ $lastPost = $this->newsletterPostsRepository->findOneBy(['newsletter' => $parent], ['createdAt' => 'desc']);
139
  if ($lastPost instanceof NewsletterPostEntity) {
140
  $newerThanTimestamp = $lastPost->getCreatedAt();
141
  }
mailpoet.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  /*
7
  * Plugin Name: MailPoet 3 (New)
8
- * Version: 3.47.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,7 +19,7 @@ if (!defined('ABSPATH')) exit;
19
  */
20
 
21
  $mailpoetPlugin = [
22
- 'version' => '3.47.2',
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.47.3
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
  $mailpoetPlugin = [
22
+ 'version' => '3.47.3',
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.4
6
- Stable tag: 3.47.2
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -184,6 +184,9 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
184
 
185
  == Changelog ==
186
 
 
 
 
187
  = 3.47.2 - 2020-06-02 =
188
  * Added: colors for form confirmation and error;
189
  * Improved: lowercase all MailPoet related email addresses;
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.4
6
+ Stable tag: 3.47.3
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
184
 
185
  == Changelog ==
186
 
187
+ = 3.47.3 - 2020-06-03 =
188
+ * Fixed: a bug which caused old posts to be sent.
189
+
190
  = 3.47.2 - 2020-06-02 =
191
  * Added: colors for form confirmation and error;
192
  * Improved: lowercase all MailPoet related email addresses;
vendor/autoload.php CHANGED
@@ -7,4 +7,4 @@ if (!defined('ABSPATH')) exit;
7
 
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
 
10
- return ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108::getLoader();
7
 
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
 
10
+ return ComposerAutoloaderInitd7b05f1e26749da068510aedd7e94dcd::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 ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108
9
  {
10
  private static $loader;
11
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108', '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\ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit5a009f24f4ae6fdbad1e2a41cd2b9108
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire5a009f24f4ae6fdbad1e2a41cd2b9108($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire5a009f24f4ae6fdbad1e2a41cd2b9108($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 ComposerAutoloaderInitd7b05f1e26749da068510aedd7e94dcd
9
  {
10
  private static $loader;
11
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitd7b05f1e26749da068510aedd7e94dcd', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitd7b05f1e26749da068510aedd7e94dcd', '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\ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd::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\ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequired7b05f1e26749da068510aedd7e94dcd($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequired7b05f1e26749da068510aedd7e94dcd($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 ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108
11
  {
12
  public static $files = array (
13
  'e65c52a9094ad098d9369d5cad5421fa' => __DIR__ . '/../..' . '/lib/exceptions.php',
@@ -1580,9 +1580,9 @@ class ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108
1580
  public static function getInitializer(ClassLoader $loader)
1581
  {
1582
  return \Closure::bind(function () use ($loader) {
1583
- $loader->prefixLengthsPsr4 = ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108::$prefixLengthsPsr4;
1584
- $loader->prefixDirsPsr4 = ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108::$prefixDirsPsr4;
1585
- $loader->classMap = ComposerStaticInit5a009f24f4ae6fdbad1e2a41cd2b9108::$classMap;
1586
 
1587
  }, null, ClassLoader::class);
1588
  }
7
  if (!defined('ABSPATH')) exit;
8
 
9
 
10
+ class ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd
11
  {
12
  public static $files = array (
13
  'e65c52a9094ad098d9369d5cad5421fa' => __DIR__ . '/../..' . '/lib/exceptions.php',
1580
  public static function getInitializer(ClassLoader $loader)
1581
  {
1582
  return \Closure::bind(function () use ($loader) {
1583
+ $loader->prefixLengthsPsr4 = ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd::$prefixLengthsPsr4;
1584
+ $loader->prefixDirsPsr4 = ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd::$prefixDirsPsr4;
1585
+ $loader->classMap = ComposerStaticInitd7b05f1e26749da068510aedd7e94dcd::$classMap;
1586
 
1587
  }, null, ClassLoader::class);
1588
  }