Commit Graph

12 Commits

Author SHA1 Message Date
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
Oluwaseun Olorunsola
1b5d85d41a Render the current site title for [site:title] on signup confirmation page description
MAILPOET-4599
2022-11-01 14:59:28 +01:00
Jan Jakes
84ca7143ff Move some more general properties to layout
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
5c08d22736 Move all premium & plan upgrade info to root layout, remove duplicities
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Rostislav Wolny
67b6d2279f Fetch authorized domains and emails for JS Apps only when MSS is active
This prevents calling bridge API in cases when user use different sending methods.
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
aba68d2305 Add mailpoet_all_sender_domains to Newsletter and settings
MAILPOET-4302
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
370de8050a Add mailpoet_verified_sender_domains to newsletters and settings page
Update tests

MAILPOET-4302
2022-08-11 12:36:23 +02:00
David Remer
97e160bf67 Fix WordPress.WP.I18n.MissingArgDomain
[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
David Remer
00f37dedd5 Display warning and disable save button when from email is not authorized
[MAILPOET-4253]
2022-06-20 10:34:41 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00