Compare commits

...

8 Commits

Author SHA1 Message Date
20b0630b90 dont use frozen install
Some checks failed
Make release / release (push) Failing after 3h2m58s
2025-03-05 03:47:23 -06:00
9c2aca9c52 Reset build script to original
Some checks failed
Make release / release (push) Has been cancelled
2025-03-05 01:53:35 -06:00
749f4dea4f Merge tag '5.8.1' 2025-03-05 01:51:34 -06:00
6a4919fbc1 Release 5.8.1
Some checks failed
Email Editor Package Tests / code-style (push) Has been cancelled
Email Editor Package Tests / phpstan-static-analysis (7.4) (push) Has been cancelled
Email Editor Package Tests / phpstan-static-analysis (8.2) (push) Has been cancelled
Email Editor Package Tests / build (7.4) (push) Has been cancelled
Email Editor Package Tests / build (8.2) (push) Failing after 25m38s
2025-03-03 13:27:10 +01:00
c424fe4b7a Fix showing Captcha title in themes that rely on single_post_title, such as Rufous or Silverstorm
[MAILPOET-6485]
2025-03-03 11:02:55 +01:00
bf3bc6d8cb Fix captcha title being applied to menu items in non-block based themes
[MAILPOET-6485]
2025-03-03 11:02:55 +01:00
afc27fabd6 Prevent auto refreshing MailPoet listing components when any items are selected
This is to prevent losing the selected state

[MAILPOET-6493]
2025-02-28 17:34:40 +01:00
c57844cb05 Update tests with oldest supported WC version
[MAILPOET-6493]
2025-02-28 17:34:40 +01:00
7 changed files with 38 additions and 25 deletions

View File

@ -1222,7 +1222,7 @@ workflows:
- acceptance_tests:
<<: *slack-fail-post-step
name: acceptance_oldest
woo_core_version: 9.5.2
woo_core_version: 9.6.2
woo_subscriptions_version: 7.1.0
woo_memberships_version: 1.25.2
automate_woo_version: 6.0.33
@ -1263,7 +1263,7 @@ workflows:
- integration_tests:
<<: *slack-fail-post-step
name: integration_oldest
woo_core_version: 9.5.2
woo_core_version: 9.6.2
woo_subscriptions_version: 7.1.0
woo_memberships_version: 1.25.2
automate_woo_version: 6.0.33
@ -1326,7 +1326,7 @@ workflows:
- acceptance_tests:
<<: *slack-fail-post-step
name: acceptance_with_premium_oldest
woo_core_version: 9.5.2
woo_core_version: 9.6.2
woo_subscriptions_version: 7.1.0
woo_memberships_version: 1.25.2
automate_woo_version: 6.0.33
@ -1338,7 +1338,7 @@ workflows:
- integration_tests:
<<: *slack-fail-post-step
name: integration_with_premium_oldest
woo_core_version: 9.5.2
woo_core_version: 9.6.2
woo_subscriptions_version: 7.1.0
woo_memberships_version: 1.25.2
automate_woo_version: 6.0.33

View File

@ -34,7 +34,10 @@ class ListingComponent extends Component {
if (autoRefresh) {
jQuery(document).on('heartbeat-tick.mailpoet', () => {
this.getItems();
// Skip auto-refresh if any items are selected for bulk editing
if (this.state.selected_ids.length === 0) {
this.getItems();
}
});
}

View File

@ -14,7 +14,8 @@ mkdir $plugin_name
# Production assets.
echo '[BUILD] Generating production CSS and JS assets'
rm -rf node_modules
pnpm install --frozen-lockfile --prefer-offline
#pnpm install --frozen-lockfile --prefer-offline
pnpm install
./do compile:all --env production --skip-tests
# Extract translations.
@ -57,17 +58,17 @@ echo '[BUILD] Fetching prefixed production libraries'
# Remove Doctrinne Annotations (no need since generated metadata are packed)
# Should be removed before `dump-autoload` to not include the annotations classes on the autoloader.
#rm -rf vendor-prefixed/doctrine/annotations
rm -rf vendor-prefixed/doctrine/annotations
# Remove DI Container files used for container dump (no need since generated metadata are packed)
# Should be removed before `dump-autoload` to not include these classes in the autoloader.
echo '[BUILD] Removing DI Container development dependencies'
#rm -rf vendor-prefixed/symfony/dependency-injection/Compiler
#rm -rf vendor-prefixed/symfony/dependency-injection/Config
#rm -rf vendor-prefixed/symfony/dependency-injection/Dumper
#rm -rf vendor-prefixed/symfony/dependency-injection/Loader
#rm -rf vendor-prefixed/symfony/dependency-injection/LazyProxy
#rm -rf vendor-prefixed/symfony/dependency-injection/Extension
rm -rf vendor-prefixed/symfony/dependency-injection/Compiler
rm -rf vendor-prefixed/symfony/dependency-injection/Config
rm -rf vendor-prefixed/symfony/dependency-injection/Dumper
rm -rf vendor-prefixed/symfony/dependency-injection/Loader
rm -rf vendor-prefixed/symfony/dependency-injection/LazyProxy
rm -rf vendor-prefixed/symfony/dependency-injection/Extension
./tools/vendor/composer.phar dump-autoload

View File

@ -1,5 +1,8 @@
== Changelog ==
= 5.8.1 - 2025-03-03 =
* Changed: minimum required WooCommerce is 9.6.
= 5.8.0 - 2025-02-24 =
* Added: allow generating coupon code in automations for a subscriber the email is sent to;
* Changed: default MailPoet pages capability changed from post to page (one of improvements is hidden previous/next post links);

View File

@ -28,6 +28,7 @@ class PageRenderer {
$this->wp->removeAction('wp_head', 'noindex', 1);
$this->wp->addAction('wp_head', [$this, 'setMetaRobots'], 1);
$this->wp->addFilter('the_title', [$this, 'setPageTitle']);
$this->wp->addFilter('single_post_title', [$this, 'setPageTitle']);
$this->wp->addFilter('the_content', [$this, 'setPageContent']);
}
@ -39,18 +40,18 @@ class PageRenderer {
if ($separatorLocation === 'right') {
// first part
$titleParts[0] = $this->setPageTitle();
$titleParts[0] = $this->getPageTitle();
} else {
// last part
$lastIndex = count($titleParts) - 1;
$titleParts[$lastIndex] = $this->setPageTitle();
$titleParts[$lastIndex] = $this->getPageTitle();
}
return implode(" $separator ", $titleParts);
}
public function setWindowTitleParts($meta = []) {
$meta['title'] = $this->setPageTitle();
$meta['title'] = $this->getPageTitle();
return $meta;
}
@ -58,8 +59,11 @@ class PageRenderer {
echo '<meta name="robots" content="noindex,nofollow">';
}
public function setPageTitle() {
return __("Confirm youre not a robot", 'mailpoet');
public function setPageTitle($title = '') {
if ($title === __('MailPoet Page', 'mailpoet')) {
return $this->getPageTitle();
}
return $title;
}
public function setPageContent($pageContent) {
@ -72,4 +76,8 @@ class PageRenderer {
return str_replace('[mailpoet_page]', trim($content), $pageContent);
}
private function getPageTitle() {
return __('Confirm youre not a robot', 'mailpoet');
}
}

View File

@ -2,7 +2,7 @@
/*
* Plugin Name: MailPoet
* Version: 5.8.0
* Version: 5.8.1
* Plugin URI: https://www.mailpoet.com
* Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
* Author: MailPoet
@ -20,7 +20,7 @@
*/
$mailpoetPlugin = [
'version' => '5.8.0',
'version' => '5.8.1',
'filename' => __FILE__,
'path' => dirname(__FILE__),
'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',

View File

@ -3,7 +3,7 @@ Contributors: mailpoet, woocommerce, automattic
Tags: email marketing, post notification, woocommerce emails, email automation, newsletter
Requires at least: 6.6
Tested up to: 6.7
Stable tag: 5.8.0
Stable tag: 5.8.1
Requires PHP: 7.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -222,9 +222,7 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
== Changelog ==
= 5.8.0 - 2025-02-24 =
* Added: allow generating coupon code in automations for a subscriber the email is sent to;
* Changed: default MailPoet pages capability changed from post to page (one of improvements is hidden previous/next post links);
* Fixed: Prevent removing the content block from the Newsletter template in the new editor.
= 5.8.1 - 2025-03-03 =
* Changed: minimum required WooCommerce is 9.6.
[See the changelog for all versions.](https://github.com/mailpoet/mailpoet/blob/trunk/mailpoet/changelog.txt)