Commit Graph

23190 Commits

Author SHA1 Message Date
2f0cec5fde Replace WP Rich Text package by our build with version 7.14.0
[MAILPOET-6387]
2024-12-18 09:54:39 +01:00
ea894e2917 Add config for RichText package into webpack config
[MAILPOET-6387]
2024-12-18 09:54:39 +01:00
132c247d97 Update email-editor @wordpress/rich-text dependency to 7.14.0
[MAILPOET-6387]
2024-12-18 09:54:39 +01:00
3ce8e38a00 Remove unused method from Email_editor class
[MAILPOET-6387]
2024-12-18 09:54:39 +01:00
363382d2a4 Make PHP notice version-agnostic for translators
[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
7e282fa03a Fix Uncaught ArgumentCountError: 4 arguments are required, 3 given
[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
38cd7491be Remove hinting to using an outdated version
[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
a7feee3c48 Remove old deactivation method
[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
d6b4fd9bc6 Execute plugin only when requirements are met.
Instead of deactivating, we just do not require the autoloader and do not initialize
the plugin. We only show the notices in the admin.

[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
c37800bca8 Group admin notices together
[MAILPOET-6389]
2024-12-18 10:01:19 +02:00
0d6acde41a Release 5.5.1 2024-12-18 08:28:11 +02:00
513ba77b22 Ensure wcsGetBillingPeriodStrings always returns an array
We noticed some errors in logs when the function returned another value.
This can be caused by a filter inside wcs_get_subscription_period_strings
The rest of our code expects an array, so if the function doesn't return an array,
let's return an empty array to avoid crashes.
[PREMIUM-288]
2024-12-17 14:31:23 +01:00
c0e61fbdc4 Refactor overlooked test class names
We favor "Captcha" prefix over "BuiltInCaptcha." A refactoring has been already pushed for that. This has been overlooked.

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
7b86b932c3 Fix duplicate MailPoet page in settings
Fixes an issue where two MP pages with the same name appears in page selection under Setting -> Basics for some settings like "Manage subscription page."

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
6f9c71faf1 Add a new page for built-in CAPTCHA rendering
The page to render the built-in CAPTCHA carry the 'subscriptions' name, which is not fitting for usage outside MP's subscriptions context.

Previously, CAPTCHA in render in this page:
/?mailpoet_page=subscriptions&(...)

This has been changed to:
/?mailpoet_page=captcha&(...)

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
84999fde99 Refactor hard-coded page name to constant
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
9ff838f964 Revert "Adjust MP's page name to template"
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
99717e5de8 Rename a variable for readability
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
7f606234a3 Fix unnecessary call to exit in CAPTCHA refresh
Upon refactoring, this was added by mistake

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
2d4e8f4df6 Fix broken integration & acceptance tests 2024-12-17 13:56:00 +02:00
93eb0813f9 Fix broken import statements upon rebasing 2024-12-17 13:56:00 +02:00
bd218fb503 Add built-in CAPTCHA in WC register form
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
0ba53c660f Validate built-in CAPTCHA in WP register form
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
9c38938a72 Render built-in CAPTCHA in WP register form
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
df171fdcc7 Add JSON endpoint for CAPTCHA rendering
To be used inside WP/WC registration form to construct URL for CAPTCHA page.

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
d2ebfba8c3 Fix PHPStorm don't force comma on last array element
This conflict with the project's coding standard, specifically with this rule:

SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma
2024-12-17 13:56:00 +02:00
995190108c Abstract MP form details in CAPTCHA form renderer
A preliminary step to enable built-in CAPTCHA in external forms, specifically for WP/WC registration form.
2024-12-17 13:56:00 +02:00
798cb26445 Minor polishing for CAPTCHA form renderer 2024-12-17 13:56:00 +02:00
8744ddde1c Clean up dead endpoints in subscription router 2024-12-17 13:56:00 +02:00
60d579da6a Remove no longer used code for CAPTCHA refresh 2024-12-17 13:56:00 +02:00
0230099c92 Migrate refresh URL in built-in CAPTCHA form 2024-12-17 13:56:00 +02:00
f8787f45c0 Add 'refresh' phrase action to CAPTCHA router 2024-12-17 13:56:00 +02:00
53a7df4eea Remove no longer used code for CAPTCHA audio 2024-12-17 13:56:00 +02:00
1e0ee91f1c Migrate audio URL in built-in CAPTCHA form 2024-12-17 13:56:00 +02:00
78de943ed0 Add 'audio' rendering action to CAPTCHA router 2024-12-17 13:56:00 +02:00
28b92ed349 Remove no longer used code for CAPTCHA image 2024-12-17 13:56:00 +02:00
57e56b15bc Migrate image URL in built-in CAPTCHA form 2024-12-17 13:56:00 +02:00
edbe8df310 Add 'image' rendering action to CAPTCHA router 2024-12-17 13:56:00 +02:00
5992708be3 Remove no longer used code for CAPTCHA rendering 2024-12-17 13:56:00 +02:00
720ec613df Use newly created CAPTCHA router for rendering 2024-12-17 13:56:00 +02:00
3bda992f13 Move CAPTCHA classes under MailPoet\Captcha dir
CAPTCHA usage is no longer tied to MP's subscription form.
2024-12-17 13:56:00 +02:00
8e608816a9 Rename a class for consistency
Aligns the name with other builtin CAPTCHA classes, which all starts with 'Captcha.'
2024-12-17 13:56:00 +02:00
c8577b0611 Remove pointless abstraction in built-in CAPTCHA
Pointless. Not referenced except in implementation classes.
2024-12-17 13:56:00 +02:00
8e9c9c5bda Adjust MP's page name to 'template'
The page for the builtin CAPTCHA carry the 'subscriptions' name, which is not fitting to use outside MP's subscriptions context.

This adjusts the mailpoet page from:
/?mailpoet_page=subscriptions

To this link:
/?mailpoet_page=template
2024-12-17 13:56:00 +02:00
57b1635c24 Render built-in CAPTCHA form in dedicated page
Adds a new router for MP's pages:

/?mailpoet_page=subscriptions&mailpoet_router&endpoint=captcha&action=render

A preliminary step to provide builtin CAPTCHA for WP/WC registration form. Currently, builtin CAPTCHA is rendered under subscription-specific params:

/?mailpoet_page=subscriptions&mailpoet_router&endpoint=subscription&action=captcha
2024-12-17 13:56:00 +02:00
e1e079e1a5 Update selenium + chrome image in sample config for Mx Macs
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
43f7542c64 Improve the look of labels in the save items popup in the editor
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
c64e4caf27 Remove styles data added to templates REST API response
We no longer need to send CSS for every template because we use global styles
live from the editor.
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
bc10ae7216 Cleanup JS code from styles - template association
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
269b55ed08 Use current styles from the store for template previews in the selector
This commit ensures that templates are previewed with the latest styles
set in the editor. Previously, we were using the version sent from the server that
might be out of date.
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00