Commit Graph

42 Commits

Author SHA1 Message Date
Jan Lysý
1053f062e3 Change info notice to success notice
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
Jan Lysý
7d6e69e639 Add notice when premium features for key are available
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
 Ján Mikláš
0ab2f8e6a3 Show June 2023 sale banner
[MAILPOET-5213]
2023-06-05 09:47:15 +02:00
Rostislav Wolny
8ce8524ee3 Adjust conditions for displaying pending approval notice
The method was displayed even when MSS was set but key was not valid.
This may happen when a key loses the access to MSS.
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
 Ján Mikláš
63be8969f3 Improve strings based on translators' feedback
[MAILPOET-5201]
2023-04-10 13:03:18 +02:00
Pavel Dohnal
535f880c8d Use a better transient key
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
0f4ffd7849 Use get_plugin_data from WPFunctions
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
cf88a3fab2 Display warning for unsupported WooCommerce version
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Jan Lysý
518918b675 Change pending approval notice from error to warning
[MAILPOET-4528]
2023-02-27 11:59:05 +01:00
Jan Lysý
612500c612 Change the value of option name constant
[MAILPOET-4528]
2023-02-27 11:59:05 +01:00
Jan Lysý
22b0278003 Add notice when the subscription is waiting on approval
[MAILPOET-4528]
2023-02-27 11:59:05 +01:00
Oluwaseun Olorunsola
10ea5ec55b Remove extra sending method check for new users.
mta.method is probably not set yet.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
805804f3d3 Add WP Filter to disable the mail function check
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
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
Oluwaseun Olorunsola
2ebcad1468 Exclude Notices from landingpage
MAILPOET-4797
2023-01-09 14:38:09 +01:00
Rostislav Wolny
a698e416ad Allow all permanent notices on all pages except the wizard page
[MAILPOET-4825]
2023-01-02 14:13:53 +01:00
Rostislav Wolny
49d9dd666b Fix coding styles issues in DisableMailFunctionNotice
[MAILPOET-4760]
2022-12-05 11:59:16 +01:00
Oluwaseun Olorunsola
53dda33c02 Update method and constant name
MAILPOET-4760
2022-12-05 10:25:28 +01:00
Oluwaseun Olorunsola
0bd627d3b1 Add support for checking misconfiguration of the PHP mail function
Some hosts do perform intentional misconfiguration of the mail function, causing it not to work.

When the mail function is misconfigured, we can still access and execute the mail function from within the codebase, but we get an error.

There’s no accurate way to know the PHP mail function is misconfigured. Unless we execute the function with all the proper parameters and check the exception error message against this error `Could not instantiate mail function.`

MAILPOET-4760
2022-12-05 10:25:28 +01:00
Oluwaseun Olorunsola
99d0eede80 Add tests for DisabledMailFunctionNotice
MAILPOET-4760
2022-12-05 10:25:28 +01:00
Oluwaseun Olorunsola
d09b4ca409 Add check for mail function and display notice if disabled
MAILPOET-4760
2022-12-05 10:25:28 +01:00
Rostislav Wolny
f369e399ed Distinguish main page and emails page
There are some cases where we link or redirect to main page but
actually we want to redirect to emails page. It happens that currently they are
the same page, but we need to distinguish these cases for the future when
we switch the main page to new homepage.
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
4832771185 Refactor the captcha system
The current Captcha class has a lot of responsibilities. It renders the captcha
image, can check if a certain captcha type is a Google captcha, if a captcha is
required for a certain email. The SubscriberSubscribeController is not only in
charge of "controlling" the subscription process but also validates, whether a
captcha is correct or not. This architecture made it difficult to extend the
functionality and introduce the audio captcha feature.

Therefore this commit refactors the captcha architecture and tries to seperate
the different concerns into several classes and objects. Validation is now done
by validators.

The CaptchaPhrase now is in charge of keeping the captcha phrase consistent
between the image and the new audio, so that you can renew the captcha and both
captchas are in sync.

[MAILPOET-4514]
2022-11-24 09:20:39 +01:00
 Ján Mikláš
f8c17730fc Update tracking campaign
[MAILPOET-4712]
2022-11-14 11:22:57 +01:00
Rostislav Wolny
93e43eee7a Update sales banner for Black Friday 2022
[MAILPOET-4712]
2022-11-14 11:22:57 +01:00
 Ján Mikláš
a1c9be337f Update Black Friday content
- added timezone to sale duration
- changed date format
- link to annual billing period
- added tracking
- switch dates in "shouldDisplay" condition, so it reads as "from to" rather than "to from"
- capitalized button

[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Rostislav Wolny
b2e6cccc3a Update Black Friday notice for the current year campaign
[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Oluwaseun Olorunsola
f09616dc46 General refactor
Use a single click handler for css lookup

Set to mailpoet-js-button-authorize-email-and-sender-domain

MAILPOET-4302
2022-08-11 12:36:23 +02:00
David Remer
218de96024 Fix WordPress.WP.I18n.MissingTranslatorsComment errors
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
David Remer
b05e6d414c Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.

[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
Jan Lysý
50e98a6273 Remove old model from InactiveSubscribersNotice
[MAILPOET-4356]
2022-07-21 15:35:50 +02:00
Jan Lysý
e28aa7ed46 Remove old model from BlackFridayNotice
[MAILPOET-4356]
2022-07-21 15:35:50 +02:00
Oluwaseun Olorunsola
19b9ab8183 Hijack link to MP Shop, show email authorization modal on notices
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Ján Mikláš
f10596feec Fix typos in translations
[MAILPOET-4447]
2022-06-20 10:17:24 +02:00
Jan Lysý
d363c933ea Add strict types declaration
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Jan Lysý
98dde764a6 Add warning about deprecated filter
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Brezo Cordero
a1455c9f46 Remove Util\Notices\DeprecatedShortcodeNotice
[MAILPOET-3899]
2022-02-28 09:42:56 +01:00
John Oleksowicz
5e9728c91a Migration and tests for new default value
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00