Version Description
- 2022-11-03 =
- Fixed: missing 'CheckoutSchema' class error in WooCommerce blocks integration;
- Fixed: "Class 'Normalizer' not found" error in WP 6.1 when intl extension is missing.
Download this release
Release Info
Developer | MailPoet |
Plugin | MailPoet Newsletters (New) |
Version | 3.102.1 |
Comparing to | |
See all releases |
Code changes from version 3.102.0 to 3.102.1
- lang/mailpoet.pot +3 -3
- lib/Config/Initializer.php +1 -1
- lib/PostEditorBlocks/WooCommerceBlocksIntegration.php +2 -6
- mailpoet.php +2 -2
- readme.txt +5 -1
- vendor-prefixed/autoload.php +1 -1
- vendor-prefixed/symfony/polyfill-intl-normalizer/bootstrap.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +2 -2
lang/mailpoet.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the MailPoet plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MailPoet 3.102.
|
6 |
"Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
|
7 |
"Last-Translator: MailPoet i18n (https://www.transifex.com/organization/wysija)\n"
|
8 |
"Language-Team: MailPoet i18n <https://www.transifex.com/organization/wysija>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-11-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
@@ -11106,7 +11106,7 @@ msgstr ""
|
|
11106 |
msgid "Select a MailPoet form"
|
11107 |
msgstr ""
|
11108 |
|
11109 |
-
#: lib/PostEditorBlocks/WooCommerceBlocksIntegration.php:
|
11110 |
msgid "Subscribe to marketing opt-in."
|
11111 |
msgstr ""
|
11112 |
|
2 |
# This file is distributed under the same license as the MailPoet plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MailPoet 3.102.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
|
7 |
"Last-Translator: MailPoet i18n (https://www.transifex.com/organization/wysija)\n"
|
8 |
"Language-Team: MailPoet i18n <https://www.transifex.com/organization/wysija>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-11-03T14:59:21+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
11106 |
msgid "Select a MailPoet form"
|
11107 |
msgstr ""
|
11108 |
|
11109 |
+
#: lib/PostEditorBlocks/WooCommerceBlocksIntegration.php:122
|
11110 |
msgid "Subscribe to marketing opt-in."
|
11111 |
msgstr ""
|
11112 |
|
lib/Config/Initializer.php
CHANGED
@@ -476,7 +476,7 @@ class Initializer {
|
|
476 |
|
477 |
private function setupWoocommerceBlocksIntegration() {
|
478 |
$wcEnabled = $this->wcHelper->isWooCommerceActive();
|
479 |
-
$wcBlocksEnabled = $this->wcHelper->isWooCommerceBlocksActive('
|
480 |
if ($wcEnabled && $wcBlocksEnabled) {
|
481 |
$this->woocommerceBlocksIntegration->init();
|
482 |
}
|
476 |
|
477 |
private function setupWoocommerceBlocksIntegration() {
|
478 |
$wcEnabled = $this->wcHelper->isWooCommerceActive();
|
479 |
+
$wcBlocksEnabled = $this->wcHelper->isWooCommerceBlocksActive('8.0.0');
|
480 |
if ($wcEnabled && $wcBlocksEnabled) {
|
481 |
$this->woocommerceBlocksIntegration->init();
|
482 |
}
|
lib/PostEditorBlocks/WooCommerceBlocksIntegration.php
CHANGED
@@ -5,10 +5,8 @@ namespace MailPoet\PostEditorBlocks;
|
|
5 |
if (!defined('ABSPATH')) exit;
|
6 |
|
7 |
|
8 |
-
use Automattic\WooCommerce\Blocks\Domain\Services\ExtendRestApi;
|
9 |
-
use Automattic\WooCommerce\Blocks\Package;
|
10 |
-
use Automattic\WooCommerce\Blocks\StoreApi\Schemas\CheckoutSchema;
|
11 |
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
|
|
12 |
use Automattic\WooCommerce\StoreApi\StoreApi;
|
13 |
use MailPoet\Config\Env;
|
14 |
use MailPoet\Entities\SubscriberEntity;
|
@@ -116,9 +114,7 @@ class WooCommerceBlocksIntegration {
|
|
116 |
return;
|
117 |
}
|
118 |
|
119 |
-
$extend =
|
120 |
-
StoreApi::container()->get(ExtendSchema::class) :
|
121 |
-
Package::container()->get(ExtendRestApi::class);
|
122 |
$extend->register_endpoint_data(
|
123 |
[
|
124 |
'endpoint' => CheckoutSchema::IDENTIFIER,
|
5 |
if (!defined('ABSPATH')) exit;
|
6 |
|
7 |
|
|
|
|
|
|
|
8 |
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
9 |
+
use Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema;
|
10 |
use Automattic\WooCommerce\StoreApi\StoreApi;
|
11 |
use MailPoet\Config\Env;
|
12 |
use MailPoet\Entities\SubscriberEntity;
|
114 |
return;
|
115 |
}
|
116 |
|
117 |
+
$extend = StoreApi::container()->get(ExtendSchema::class);
|
|
|
|
|
118 |
$extend->register_endpoint_data(
|
119 |
[
|
120 |
'endpoint' => CheckoutSchema::IDENTIFIER,
|
mailpoet.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
|
|
5 |
|
6 |
/*
|
7 |
* Plugin Name: MailPoet
|
8 |
-
* Version: 3.102.
|
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.102.
|
24 |
'filename' => __FILE__,
|
25 |
'path' => dirname(__FILE__),
|
26 |
'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
|
5 |
|
6 |
/*
|
7 |
* Plugin Name: MailPoet
|
8 |
+
* Version: 3.102.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.102.1',
|
24 |
'filename' => __FILE__,
|
25 |
'path' => dirname(__FILE__),
|
26 |
'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
|
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: 6.0
|
6 |
-
Stable tag: 3.102.
|
7 |
Requires PHP: 7.2
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
@@ -219,6 +219,10 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
|
|
219 |
|
220 |
== Changelog ==
|
221 |
|
|
|
|
|
|
|
|
|
222 |
= 3.102.0 - 2022-11-01 =
|
223 |
* Added: new subscribers hooks (https://github.com/mailpoet/mailpoet/pull/4443);
|
224 |
* Improved: limit cron runs when execution limit exception is thrown;
|
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: 6.0
|
6 |
+
Stable tag: 3.102.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.102.1 - 2022-11-03 =
|
223 |
+
* Fixed: missing 'CheckoutSchema' class error in WooCommerce blocks integration;
|
224 |
+
* Fixed: "Class 'Normalizer' not found" error in WP 6.1 when intl extension is missing.
|
225 |
+
|
226 |
= 3.102.0 - 2022-11-01 =
|
227 |
* Added: new subscribers hooks (https://github.com/mailpoet/mailpoet/pull/4443);
|
228 |
* Improved: limit cron runs when execution limit exception is thrown;
|
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
|
7 |
exit(1);
|
8 |
}
|
9 |
require_once __DIR__ . '/composer/autoload_real.php';
|
10 |
+
return ComposerAutoloaderInit486e5f4a39691609e1a52d3bf13092a1::getLoader();
|
vendor-prefixed/symfony/polyfill-intl-normalizer/bootstrap.php
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
if (!defined('ABSPATH')) exit;
|
3 |
use MailPoetVendor\Symfony\Polyfill\Intl\Normalizer as p;
|
4 |
if (!\function_exists('normalizer_is_normalized')) {
|
5 |
-
function
|
6 |
{
|
7 |
return p\Normalizer::isNormalized($s, $form);
|
8 |
}
|
9 |
}
|
10 |
if (!\function_exists('normalizer_normalize')) {
|
11 |
-
function
|
12 |
{
|
13 |
return p\Normalizer::normalize($s, $form);
|
14 |
}
|
2 |
if (!defined('ABSPATH')) exit;
|
3 |
use MailPoetVendor\Symfony\Polyfill\Intl\Normalizer as p;
|
4 |
if (!\function_exists('normalizer_is_normalized')) {
|
5 |
+
function mailpoet_normalizer_is_normalized($s, $form = p\Normalizer::NFC)
|
6 |
{
|
7 |
return p\Normalizer::isNormalized($s, $form);
|
8 |
}
|
9 |
}
|
10 |
if (!\function_exists('normalizer_normalize')) {
|
11 |
+
function mailpoet_normalizer_normalize($s, $form = p\Normalizer::NFC)
|
12 |
{
|
13 |
return p\Normalizer::normalize($s, $form);
|
14 |
}
|
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
|
6 |
exit(1);
|
7 |
}
|
8 |
require_once __DIR__ . '/composer/autoload_real.php';
|
9 |
+
return ComposerAutoloaderInit3544e2b329aa380771f1cda5961b0c7c::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
|
5 |
{
|
6 |
private static $loader;
|
7 |
public static function loadClassLoader($class)
|
@@ -16,20 +16,20 @@ class ComposerAutoloaderInit29b591b46932dabe58fcd0685dfdcf23
|
|
16 |
return self::$loader;
|
17 |
}
|
18 |
require __DIR__ . '/platform_check.php';
|
19 |
-
spl_autoload_register(array('
|
20 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
21 |
-
spl_autoload_unregister(array('
|
22 |
require __DIR__ . '/autoload_static.php';
|
23 |
-
call_user_func(\Composer\Autoload\
|
24 |
$loader->register(true);
|
25 |
-
$includeFiles = \Composer\Autoload\
|
26 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
27 |
-
|
28 |
}
|
29 |
return $loader;
|
30 |
}
|
31 |
}
|
32 |
-
function
|
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 ComposerAutoloaderInit3544e2b329aa380771f1cda5961b0c7c
|
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('ComposerAutoloaderInit3544e2b329aa380771f1cda5961b0c7c', 'loadClassLoader'), true, true);
|
20 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
21 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit3544e2b329aa380771f1cda5961b0c7c', 'loadClassLoader'));
|
22 |
require __DIR__ . '/autoload_static.php';
|
23 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c::getInitializer($loader));
|
24 |
$loader->register(true);
|
25 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c::$files;
|
26 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
27 |
+
composerRequire3544e2b329aa380771f1cda5961b0c7c($fileIdentifier, $file);
|
28 |
}
|
29 |
return $loader;
|
30 |
}
|
31 |
}
|
32 |
+
function composerRequire3544e2b329aa380771f1cda5961b0c7c($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
|
6 |
{
|
7 |
public static $files = array (
|
8 |
'e65c52a9094ad098d9369d5cad5421fa' => __DIR__ . '/../..' . '/lib/exceptions.php',
|
@@ -1371,9 +1371,9 @@ class ComposerStaticInit29b591b46932dabe58fcd0685dfdcf23
|
|
1371 |
public static function getInitializer(ClassLoader $loader)
|
1372 |
{
|
1373 |
return \Closure::bind(function () use ($loader) {
|
1374 |
-
$loader->prefixLengthsPsr4 =
|
1375 |
-
$loader->prefixDirsPsr4 =
|
1376 |
-
$loader->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 ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c
|
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 = ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c::$prefixLengthsPsr4;
|
1375 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c::$prefixDirsPsr4;
|
1376 |
+
$loader->classMap = ComposerStaticInit3544e2b329aa380771f1cda5961b0c7c::$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' => '
|
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' => '
|
22 |
'dev_requirement' => false,
|
23 |
),
|
24 |
'mtdowling/cron-expression' => array(
|
7 |
'type' => 'library',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
10 |
+
'reference' => '1fa19974cf8e354d3bc212a17563ac48fc6500ae',
|
11 |
'name' => '__root__',
|
12 |
'dev' => false,
|
13 |
),
|
18 |
'type' => 'library',
|
19 |
'install_path' => __DIR__ . '/../../',
|
20 |
'aliases' => array(),
|
21 |
+
'reference' => '1fa19974cf8e354d3bc212a17563ac48fc6500ae',
|
22 |
'dev_requirement' => false,
|
23 |
),
|
24 |
'mtdowling/cron-expression' => array(
|