MailPoet Newsletters (New) - Version 3.90.1

Version Description

  • 2022-06-16 =
  • Fixed: occasional error related to twig templates when updating the plugin.
Download this release

Release Info

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

Code changes from version 3.90.0 to 3.90.1

lang/mailpoet.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the MailPoet 3 (New) package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MailPoet 3 (New) 3.90.0\n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
- "POT-Creation-Date: 2022-06-14 07:32:36+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2184,7 +2184,7 @@ msgstr ""
2184
  msgid "Note: User must be opted-in and a confirmed subscriber."
2185
  msgstr ""
2186
 
2187
- #: lib/Config/Renderer.php:105
2188
  msgid "Failed to render template \"%s\". Please ensure the template cache folder \"%s\" exists and has write permissions. Terminated with error: \"%s\""
2189
  msgstr ""
2190
 
2
  # This file is distributed under the same license as the MailPoet 3 (New) package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MailPoet 3 (New) 3.90.1\n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
+ "POT-Creation-Date: 2022-06-16 10:05:34+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2184
  msgid "Note: User must be opted-in and a confirmed subscriber."
2185
  msgstr ""
2186
 
2187
+ #: lib/Config/Renderer.php:106
2188
  msgid "Failed to render template \"%s\". Please ensure the template cache folder \"%s\" exists and has write permissions. Terminated with error: \"%s\""
2189
  msgstr ""
2190
 
lib/Config/Renderer.php CHANGED
@@ -21,7 +21,8 @@ class Renderer {
21
  public function __construct(
22
  bool $debuggingEnabled,
23
  string $cachePath,
24
- TwigFileSystem $fileSystem
 
25
  ) {
26
  $this->debuggingEnabled = $debuggingEnabled;
27
  $this->cachePath = $cachePath;
@@ -30,7 +31,7 @@ class Renderer {
30
  [
31
  'cache' => new TwigFileSystemCache($cachePath),
32
  'debug' => $this->debuggingEnabled,
33
- 'auto_reload' => true,
34
  ]
35
  );
36
 
21
  public function __construct(
22
  bool $debuggingEnabled,
23
  string $cachePath,
24
+ TwigFileSystem $fileSystem,
25
+ bool $autoReload = false
26
  ) {
27
  $this->debuggingEnabled = $debuggingEnabled;
28
  $this->cachePath = $cachePath;
31
  [
32
  'cache' => new TwigFileSystemCache($cachePath),
33
  'debug' => $this->debuggingEnabled,
34
+ 'auto_reload' => $autoReload,
35
  ]
36
  );
37
 
lib/Config/RendererFactory.php CHANGED
@@ -15,10 +15,12 @@ class RendererFactory {
15
  public function getRenderer() {
16
  if (!$this->renderer) {
17
  $debugging = WP_DEBUG;
 
18
  $this->renderer = new Renderer(
19
  $debugging,
20
  Env::$cachePath,
21
- new TwigFileSystem(Env::$viewsPath)
 
22
  );
23
  }
24
  return $this->renderer;
15
  public function getRenderer() {
16
  if (!$this->renderer) {
17
  $debugging = WP_DEBUG;
18
+ $autoReload = defined('MAILPOET_DEVELOPMENT') && MAILPOET_DEVELOPMENT;
19
  $this->renderer = new Renderer(
20
  $debugging,
21
  Env::$cachePath,
22
+ new TwigFileSystem(Env::$viewsPath),
23
+ $autoReload
24
  );
25
  }
26
  return $this->renderer;
mailpoet.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  /*
7
  * Plugin Name: MailPoet 3 (New)
8
- * Version: 3.90.0
9
  * Plugin URI: http://www.mailpoet.com
10
  * Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
11
  * Author: MailPoet
@@ -20,7 +20,7 @@ if (!defined('ABSPATH')) exit;
20
  */
21
 
22
  $mailpoetPlugin = [
23
- 'version' => '3.90.0',
24
  'filename' => __FILE__,
25
  'path' => dirname(__FILE__),
26
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
5
 
6
  /*
7
  * Plugin Name: MailPoet 3 (New)
8
+ * Version: 3.90.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
20
  */
21
 
22
  $mailpoetPlugin = [
23
+ 'version' => '3.90.1',
24
  'filename' => __FILE__,
25
  'path' => dirname(__FILE__),
26
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
mailpoet_initializer.php CHANGED
@@ -56,6 +56,7 @@ if (WP_DEBUG && PHP_VERSION_ID >= 70100 && file_exists($tracyPath)) {
56
  session_start();
57
  Debugger::enable(Debugger::DEVELOPMENT);
58
  }
 
59
  }
60
 
61
  define('MAILPOET_VERSION', $mailpoetPlugin['version']);
56
  session_start();
57
  Debugger::enable(Debugger::DEVELOPMENT);
58
  }
59
+ define('MAILPOET_DEVELOPMENT', true);
60
  }
61
 
62
  define('MAILPOET_VERSION', $mailpoetPlugin['version']);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mailpoet
3
  Tags: email, email marketing, post notification, woocommerce emails, email automation, newsletter, newsletter builder, newsletter subscribers
4
  Requires at least: 5.6
5
  Tested up to: 5.9
6
- Stable tag: 3.90.0
7
  Requires PHP: 7.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -219,6 +219,9 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
219
 
220
  == Changelog ==
221
 
 
 
 
222
  = 3.90.0 - 2022-06-14 =
223
  * Updated: js-cookie library to version 3;
224
  * Improved: autocomplete's accessibility for first and last name;
3
  Tags: email, email marketing, post notification, woocommerce emails, email automation, newsletter, newsletter builder, newsletter subscribers
4
  Requires at least: 5.6
5
  Tested up to: 5.9
6
+ Stable tag: 3.90.1
7
  Requires PHP: 7.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
219
 
220
  == Changelog ==
221
 
222
+ = 3.90.1 - 2022-06-16 =
223
+ * Fixed: occasional error related to twig templates when updating the plugin.
224
+
225
  = 3.90.0 - 2022-06-14 =
226
  * Updated: js-cookie library to version 3;
227
  * Improved: autocomplete's accessibility for first and last name;
vendor-prefixed/autoload.php CHANGED
@@ -7,4 +7,4 @@ if (\PHP_VERSION_ID < 50600) {
7
  exit(1);
8
  }
9
  require_once __DIR__ . '/composer/autoload_real.php';
10
- return ComposerAutoloaderInit71b9d89032203fc24473a6add9dfc85d::getLoader();
7
  exit(1);
8
  }
9
  require_once __DIR__ . '/composer/autoload_real.php';
10
+ return ComposerAutoloaderInitf1e9b1675dc0bbfbfcce1c059cdba2de::getLoader();
vendor/autoload.php CHANGED
@@ -6,4 +6,4 @@ if (PHP_VERSION_ID < 50600) {
6
  exit(1);
7
  }
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
- return ComposerAutoloaderInitdd1fe486c03ae0f67f5044e413c0bb1f::getLoader();
6
  exit(1);
7
  }
8
  require_once __DIR__ . '/composer/autoload_real.php';
9
+ return ComposerAutoloaderInitd23874460519901b645d1bedc9f83f43::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if (!defined('ABSPATH')) exit;
3
  // autoload_real.php @generated by Composer
4
- class ComposerAutoloaderInitdd1fe486c03ae0f67f5044e413c0bb1f
5
  {
6
  private static $loader;
7
  public static function loadClassLoader($class)
@@ -16,20 +16,20 @@ class ComposerAutoloaderInitdd1fe486c03ae0f67f5044e413c0bb1f
16
  return self::$loader;
17
  }
18
  require __DIR__ . '/platform_check.php';
19
- spl_autoload_register(array('ComposerAutoloaderInitdd1fe486c03ae0f67f5044e413c0bb1f', 'loadClassLoader'), true, true);
20
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
21
- spl_autoload_unregister(array('ComposerAutoloaderInitdd1fe486c03ae0f67f5044e413c0bb1f', 'loadClassLoader'));
22
  require __DIR__ . '/autoload_static.php';
23
- call_user_func(\Composer\Autoload\ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f::getInitializer($loader));
24
  $loader->register(true);
25
- $includeFiles = \Composer\Autoload\ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f::$files;
26
  foreach ($includeFiles as $fileIdentifier => $file) {
27
- composerRequiredd1fe486c03ae0f67f5044e413c0bb1f($fileIdentifier, $file);
28
  }
29
  return $loader;
30
  }
31
  }
32
- function composerRequiredd1fe486c03ae0f67f5044e413c0bb1f($fileIdentifier, $file)
33
  {
34
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
35
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
1
  <?php
2
  if (!defined('ABSPATH')) exit;
3
  // autoload_real.php @generated by Composer
4
+ class ComposerAutoloaderInitd23874460519901b645d1bedc9f83f43
5
  {
6
  private static $loader;
7
  public static function loadClassLoader($class)
16
  return self::$loader;
17
  }
18
  require __DIR__ . '/platform_check.php';
19
+ spl_autoload_register(array('ComposerAutoloaderInitd23874460519901b645d1bedc9f83f43', 'loadClassLoader'), true, true);
20
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
21
+ spl_autoload_unregister(array('ComposerAutoloaderInitd23874460519901b645d1bedc9f83f43', 'loadClassLoader'));
22
  require __DIR__ . '/autoload_static.php';
23
+ call_user_func(\Composer\Autoload\ComposerStaticInitd23874460519901b645d1bedc9f83f43::getInitializer($loader));
24
  $loader->register(true);
25
+ $includeFiles = \Composer\Autoload\ComposerStaticInitd23874460519901b645d1bedc9f83f43::$files;
26
  foreach ($includeFiles as $fileIdentifier => $file) {
27
+ composerRequired23874460519901b645d1bedc9f83f43($fileIdentifier, $file);
28
  }
29
  return $loader;
30
  }
31
  }
32
+ function composerRequired23874460519901b645d1bedc9f83f43($fileIdentifier, $file)
33
  {
34
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
35
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -2,7 +2,7 @@
2
  // autoload_static.php @generated by Composer
3
  namespace Composer\Autoload;
4
  if (!defined('ABSPATH')) exit;
5
- class ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f
6
  {
7
  public static $files = array (
8
  'e65c52a9094ad098d9369d5cad5421fa' => __DIR__ . '/../..' . '/lib/exceptions.php',
@@ -1371,9 +1371,9 @@ class ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f
1371
  public static function getInitializer(ClassLoader $loader)
1372
  {
1373
  return \Closure::bind(function () use ($loader) {
1374
- $loader->prefixLengthsPsr4 = ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f::$prefixLengthsPsr4;
1375
- $loader->prefixDirsPsr4 = ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f::$prefixDirsPsr4;
1376
- $loader->classMap = ComposerStaticInitdd1fe486c03ae0f67f5044e413c0bb1f::$classMap;
1377
  }, null, ClassLoader::class);
1378
  }
1379
  }
2
  // autoload_static.php @generated by Composer
3
  namespace Composer\Autoload;
4
  if (!defined('ABSPATH')) exit;
5
+ class ComposerStaticInitd23874460519901b645d1bedc9f83f43
6
  {
7
  public static $files = array (
8
  'e65c52a9094ad098d9369d5cad5421fa' => __DIR__ . '/../..' . '/lib/exceptions.php',
1371
  public static function getInitializer(ClassLoader $loader)
1372
  {
1373
  return \Closure::bind(function () use ($loader) {
1374
+ $loader->prefixLengthsPsr4 = ComposerStaticInitd23874460519901b645d1bedc9f83f43::$prefixLengthsPsr4;
1375
+ $loader->prefixDirsPsr4 = ComposerStaticInitd23874460519901b645d1bedc9f83f43::$prefixDirsPsr4;
1376
+ $loader->classMap = ComposerStaticInitd23874460519901b645d1bedc9f83f43::$classMap;
1377
  }, null, ClassLoader::class);
1378
  }
1379
  }
vendor/composer/installed.php CHANGED
@@ -7,7 +7,7 @@ if (!defined('ABSPATH')) exit;
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
10
- 'reference' => 'c9cd74151472c521f7d85c14e146c8bfd246589b',
11
  'name' => '__root__',
12
  'dev' => false,
13
  ),
@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) exit;
18
  'type' => 'library',
19
  'install_path' => __DIR__ . '/../../',
20
  'aliases' => array(),
21
- 'reference' => 'c9cd74151472c521f7d85c14e146c8bfd246589b',
22
  'dev_requirement' => false,
23
  ),
24
  'mtdowling/cron-expression' => array(
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
10
+ 'reference' => '9084120ab303c96e38033cfa42245609941f2378',
11
  'name' => '__root__',
12
  'dev' => false,
13
  ),
18
  'type' => 'library',
19
  'install_path' => __DIR__ . '/../../',
20
  'aliases' => array(),
21
+ 'reference' => '9084120ab303c96e38033cfa42245609941f2378',
22
  'dev_requirement' => false,
23
  ),
24
  'mtdowling/cron-expression' => array(