Commit Graph

23862 Commits

Author SHA1 Message Date
e674cfe30e Merge tag '5.12.1'
All checks were successful
Make release / release (push) Successful in 53m18s
5.12.1-pirate
2025-05-06 12:03:51 -05:00
ef31486d2e Release 5.12.1 2025-05-06 10:53:11 +02:00
03e10b96e9 Add changelog
[STOMAIL-7383]
2025-05-06 10:11:46 +02:00
54359dc610 Fix handling of Japanese characters in custom field blocks
[STOMAIL-7383]
2025-05-06 10:11:46 +02:00
5c7a746470 Add changelog
STOMAIL-7401
2025-05-05 21:49:38 +02:00
83033c7991 Fix listing action items overlaying with row border
STOMAIL-7401
2025-05-05 21:49:38 +02:00
b480fb510f Fix failing tests in May in years when February has 28 days
STOMAIL-7400
2025-05-05 19:17:25 +02:00
c1ced0cc73 Merge tag '5.12.0'
All checks were successful
Make release / release (push) Successful in 49m58s
5.12.0-pirate
2025-05-05 12:07:44 -05:00
043d8d187b Add changelog
STOMAIL-7397
2025-05-05 15:07:00 +02:00
1faf5822a2 Update Migration_20230831_143755_Db to work properly with multi query
STOMAIL-7397
2025-05-05 15:07:00 +02:00
0898ed7b56 Update used Automate Woo plugin in Circle CI
- latest version: 6.1.11
 - previous version: 6.0.33
2025-05-05 13:37:22 +02:00
d5908a6fb9 Update used WooCommerce plugin in Circle CI
- latest version: 9.8.3
 - previous version: 9.7.1
2025-05-05 13:37:22 +02:00
b6ed846b8b Update used WordPress images in Circle CI
- latest version: 6.8.1-php8.3
 - previous version: 6.7.2
2025-05-05 13:37:22 +02:00
75cf32c211 Fix the link to the woo settings in the marketing optin block 2025-05-05 12:41:12 +02:00
80e0a92243 Declare Woo checkout opt-in block compatible with API v3 2025-05-05 12:41:12 +02:00
2ccaff11ae Update subscription form block to declare compatibility with api v3
This allows the Block editor to run in iframe mode.
The iframe mode is more performant and expected in QIT tests.
2025-05-05 12:41:12 +02:00
d98722a94a Split a long query into chunks
[STOMAIL-7399]
2025-05-05 10:39:42 +02:00
3b75c10670 Re-subscribe subscribers into the segments
when a bot unsubscribes subscriber
they are unsubscribed globaly and in segment
this adds them back

[STOMAIL-7399]
2025-05-05 10:39:42 +02:00
7dea7bbf00 Add a test to check Subscriber Segments
Since the bot clicks to an unsubscribe link

the subscriber is alos unsubscribed from the segments

[STOMAIL-7399]
2025-05-05 10:39:42 +02:00
f6c81b2583 Add a data factory for Subscriber Segments
[STOMAIL-7399]
2025-05-05 10:39:42 +02:00
8bc5c1b976 Refactor SQL query into two separate queries
[STOMAIL-7399]
2025-05-05 10:39:42 +02:00
2f77fc3912 Add migration to re-subscribe subscribers unsubscribed by bots
In the migration, we consider subscribers who made three and more clicks
and unsubscribed within 4 seconds before and 4 seconds after unsubscribe
as unsubscribed by a bot.

From research of affected sites, it seems that the issue started in late March or early April.
So we restrict the date to the start of March.
STOMAIL-7399
2025-05-05 10:39:42 +02:00
3d970898d7 Upgrade vulnerable dependencies http-proxy-middleware 2025-04-30 12:01:26 +02:00
ff3614821a Release 5.12.0 2025-04-30 07:43:38 +02:00
6acf7a5137 Release 5.12.0 2025-04-30 07:43:38 +02:00
e9127734b2 Release 5.12.0 2025-04-30 07:43:38 +02:00
99bf0d5a09 Release 5.12.0
Some checks failed
Email Editor Package Tests / build (7.4) (push) Has been cancelled
Email Editor Package Tests / build (8.2) (push) Has been cancelled
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
2025-04-29 13:14:33 +02:00
c5ae72a326 Release 5.12.0 2025-04-29 13:12:26 +02:00
fa427b567a Release 5.12.0 2025-04-29 12:59:58 +02:00
6209f7989c Add request_method parameter to the unsubscribe confirmation form URL
The form is sent via POST, but in case there are some redirects
configured on the server, it may end up as GET causing unsubscribed not to work.

The parameter ensures it is always processed as it came via POST.
STOMAIL-7396
2025-04-29 12:54:06 +02:00
cc8786af5c Update acceptance tests for unsubscribe links
We newly check if POST request to the url from List-Unsubscribe works as expected
and also that GET requestl to List-Unsubscribe renders the confirmation page.

STOMAIL-7396
2025-04-29 12:54:06 +02:00
909d72af4c Pass the original HTTP method for when List-Unsubscribe uses a tracking URL
When we use a tracking URL in List-Unsubscribe header and the one-click unsubscribe request is sent via POST
the click tracking code redirects via 302 and the request becomes GET.

We started to render the unsubscribe confirmation page for GET requests, so the one-click unsubscribe was broken.
This commit fixes it by passing the original method via a query parameter. We look into the query parameter
when we determine whether we want to unsubscribe or render the confirmation page.

We could also achieve the same using 307 for redirects, but I have a concern that 307 might not work properly
with old email clients or bots.
STOMAIL-7396
2025-04-29 12:54:06 +02:00
b148498527 Fix preview functionality for the unsubscribe page
The preview needs to be handled via GET, and it doesn't contain the token, which is required for unsubscribe.
When preview is present
STOMAIL-7396
2025-04-29 12:54:06 +02:00
918b2c5a0b Fix behavior when unsubscribe confirmation is disabled via a filter
STOMAIL-7396
2025-04-29 12:54:06 +02:00
e996a4ab73 Allow unsubscribe only by a POST request
We don't want to allow GET to avoid accidental unsubscribes by bots.
The one-click URL should support only GET.

Instead of unsubscribing, we display the confirmation page on GET.

We also need to refactor the Confirmation page to use POST.
I added a parameter 'type' to distinguish if the unsubscribe comes from one-click or confirmation page.
STOMAIL-7396
2025-04-29 12:54:06 +02:00
343c073f61 Improve translations
STOMAIL-7300
2025-04-29 11:53:39 +02:00
489ff284a6 Add missing translation
STOMAIL-7300
2025-04-29 11:53:39 +02:00
f50b87029b Hide Dynamic Products block from confirmation email template
STOMAIL-7324
2025-04-29 10:26:27 +02:00
9143902093 Fix missing space between back button and tabs
STOMAIL-7324
2025-04-29 10:26:27 +02:00
2d65801335 Update MailPoet orange color to WP theme color
STOMAIL-7324
2025-04-29 10:26:27 +02:00
0c5fe5eeec Fix tests
STOMAIL-7324
2025-04-29 10:26:27 +02:00
04e0b57ec3 Refactor form translations, remove some unused ones
STOMAIL-7324
2025-04-29 10:26:27 +02:00
3fd2d1e590 Use sentence case for CTAs
STOMAIL-7324
2025-04-29 10:26:27 +02:00
cac529617a Return top bar to all MailPoet pages
STOMAIL-7324
2025-04-29 10:26:27 +02:00
1fa4f4b465 Add changelog
STOMAIL-7324
2025-04-29 10:26:27 +02:00
397b91654e Convert subscribers/form to TypeScript
STOMAIL-7324
2025-04-29 10:26:27 +02:00
a0ea543143 Convert subscribers/heading to TypeScript
STOMAIL-7324
2025-04-29 10:26:27 +02:00
55dda282cd Convert newsletters/types/notification/notification to TypeScript
STOMAIL-7324
2025-04-29 10:26:27 +02:00
34ef74a7f8 Convert newsletters/newsletters to TypeScript
STOMAIL-7324
2025-04-29 10:26:27 +02:00
c94ac52f28 Convert newsletters/listings/heading to TypeScript
STOMAIL-7324
2025-04-29 10:26:27 +02:00