Commit Graph

17780 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
805804f3d3 Add WP Filter to disable the mail function check
MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
74549665d6 Stop checking for DisabledMailFunction when the plugin is repeatedly activated and updated.
We will only perform the check when the plugin is first activated and sending method is changed.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
5b78ea9a69 Update test mail information for DisabledMailFunctionNotice
In this commit, we change the test mail subject, body and destination address

MAILPOET-4929
2023-02-06 12:11:12 +01:00
David Remer
b25c8b8965 Do not use title attribute when alt text is not defined
[MAILPOET-4932]
2023-02-06 11:43:23 +01:00
Oluwaseun Olorunsola
da5b0ede16 Show the MailPoet logo on the landing page
This will show the topbar (including the MailPoet logo) and set content max-width

MAILPOET-5029
2023-02-06 10:59:27 +01:00
Veljko
29de3e2bae Remove Promise from helper
[MAILPOET-4960]
2023-02-02 17:16:33 +01:00
Veljko
79bc684312 Add new test Settings basics
[MAILPOET-4960]
2023-02-02 17:16:33 +01:00
David Remer
7bc71429eb Add Copy to clipboard button
[MAILPOET-4526]
2023-02-01 12:48:35 +01:00
alex-mailpoet
967988519b Fix deprecated callable usage in Sudzy library
[MAILPOET-4873]
2023-02-01 12:17:03 +01:00
Jan Lysý
3b5a96a3f7 Add test case that coupon is rendered correctly
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
83b14013ec Add coupon block unit test
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
cd9904de7d Fix using code instead of couponCode read by id
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
d305498613 Add coupon block acceptance test
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
69833557e4 Add newsletter editor test for coupon block
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
cd596245ce Add coupon default values
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
David Remer
7d36d59e65 Allow rgb in the newsletter style attributes
[MAILPOET-4981]
2023-02-01 11:10:59 +01:00
David Remer
efaa5073fb Query subscriber by user in shortcode
[MAILPOET-4184]
2023-02-01 10:53:26 +01:00
David Remer
37f4082210 Remove wpUser authentication
[MAILPOET-4184]
2023-02-01 10:53:26 +01:00
Rodrigo Primo
f324abd1d0 Update woocommerce-stubs to version 7.3.0
[MAILPOET-4313]
2023-02-01 08:57:47 +02:00
Rodrigo Primo
5d56a0368a Update outdated PHP version message
Changing the message to make it more clear that PHP >= 7.2 and <= 7.3 is
not recommended but still supported.

[MAILPOET-4933]
2023-01-31 13:58:52 +01:00
Rodrigo Primo
106db48f8d Display the PHP outdated version warning for sites running PHP <= 7.3
[MAILPOET-4933]
2023-01-31 13:58:52 +01:00
Jan Jakes
ed2ecb7604 Release 4.6.0 2023-01-31 13:26:57 +01:00
Jan Jakes
10dcc4f45d Fix failing test due to a changed DMARC policy
It seems that the DMARC policy for automattic.com was changed from
"quarantine" to "reject".

[MAILPOET-5038]
2023-01-30 14:40:17 -03:00
Rodrigo Primo
3237351450 Move code to handle tracking source of wizard to its own file
Doing this based on feedback during the PR review: https://github.com/mailpoet/mailpoet/pull/4660/files#r1073420154

[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
8d57e81b99 Use return type hint instead of docblock to tell PHP the return type
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
e37daa6c66 Delete setting instead of updating it when tracking wizard source
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
ad4247a241 Add API endpoint to delete a setting
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
8a4f5c13da Add tracking for users arriving to the wizard from WooCommerce
MailPoet adds a link to the WooCommerce task list pointing to its own
welcome wizard. We want to track users that arrive to the MP wizard from
WooCommerce but at this point tracking is not enabled. So we store the
information in a setting, and send the tracking event to Mixpanel, if it
is enabled, after the user completes the wizard.

[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
1161e6f3f6 Add MailPoet task to WooCommerce homepage
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Jan Lysý
e5d5e20efd Add escaping into rendering homepage_link shortcode
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
9fcb9afa9d Add site:homepage_url shortcode to helper
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
b24b7b86fd Update homepage link in default settings for confirmation email
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
ddca94891d Unify rendering site:homepate_link shortcode with value from helper
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
9f14f3cc08 Change inserted text in shortcode helper for Homepage link
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
6b3fc309cc Add new shortcode [site:homepage_url]
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
 Ján Mikláš
60d933b39a Fix capitalization of MSS
[MAILPOET-5030]
2023-01-30 14:25:41 +01:00
alex-mailpoet
ea57fd9c11 Update pronouns in a string from "his/her" to "their"
[MAILPOET-5028]
2023-01-30 14:24:21 +01:00
alex-mailpoet
a9788b04d4 Remove Code Sniffer ignore
[MAILPOET-4900]
2023-01-30 14:13:33 +01:00
alex-mailpoet
46c45d9bef Fix consolidation/robo PHP 8.2 deprecation notices
[MAILPOET-4900]

When a new robo version with a fix for 'self' in callables is released,
this patch can be removed. Check here:
https://github.com/consolidation/robo/issues/1135
2023-01-30 14:13:33 +01:00
alex-mailpoet
3282e2f063 Update robo and its dependency to PHP 8.2 compatible versions
[MAILPOET-4900]
2023-01-30 14:13:33 +01:00
Sam Najian
05e941e449 Allow dynamic genration of coupon code for some newsletters
Those newsletters that allow updating their body html should
persist the couponId along side the Coupon block settings so
that on the next rendering attempt the same coupon code is
used

[MAILPOET-4763]
2023-01-30 12:46:38 +01:00
Oluwaseun Olorunsola
6a14a3f7b1 Stop saving invalid input values
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
b858f1159a Update tests and remove unused variables
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
f3d73aae03 Escape the content for placeholder
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
494723c818 Use WooCommerce decimal separators when validating input fields
We need to use the decimal separators selected by the user for our validation. We are also using the validation used on the adding/editing coupon page

MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
93af9d491d Add validation for some fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
b07d34ee23 Fix tests
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
4b2b94db9e Add Products and Exclude products Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
77b9cea62c Add Product categories and Exclude categories Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
e2dc137b59 Add Usage limit fields and half of Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00