Commit Graph

24 Commits

Author SHA1 Message Date
John Oleksowicz
c9dda915dc Only create the backfill task once
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
b02ef8fe8f Use populator instead of migration
MAILPOET-5404
2023-07-12 15:48:03 +02:00
David Remer
06a704da75 Use Populator to add group and event to available options
[MAILPOET-4934]
2023-05-15 08:19:19 +02: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
Jan Jakes
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
Jan Jakes
96368cbd3f Move one-time migrations from populator to the new initial migration
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
1640ca37dc Add migration for notification history records that are stuck in sending status
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Rodrigo Primo
8faa33643c Remove old Segment model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
ef66a21096 Remove old ScheduledTask model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
bc1ee3caa2 Remove old Subscriber model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
b15a6723cf Remove old SendingQueue model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
8d4a1140a9 Remove old Newsletter model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +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 Jakes
4b5afeac54 Save workflow step ID to automation email options
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
bb24838881 Save workflow ID to automation email options
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Lysý
f899eb1c16 Parse name from an email
When the settings table is empty and the current user uses an email in the name. We try to parse the name.
[MAILPOET-4501]
2022-08-08 10:42:25 +02:00
Rodrigo Primo
b2ba612145 Fix: don't run the code to enable third party libraries for new installs
This commit fixes the logic of the code that enables third party
libraries by default. It was meant to enable those libraries only for
existing installs when the code was introduced in cfae753601
to avoid breaking functionality. But due to a bug, it was also enabling
those libraries for new installs.

To fix this issue, this commit moves the code to the Migrator class and
makes sure it is only executed for existing installs and only once when
doing a version update.

[MAILPOET-4285]
2022-07-12 16:01:39 +02:00
David Remer
53fc49d1eb Simplify phpcs:disable comments
Additionally this commit contains a conversion from %d to %s in a query

[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
cb55cae1b2 Escape SQL queries following wp org sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
Sam Najian
a2ab1a3cfd Escape queries before passing to $wpdb methods
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
Sam NAjian
feb3cfb63c Make sure user exists before setting sender defaults
[MAILPOET-4062]
2022-02-07 16:06:07 +01:00
Jan Lysý
3f07e591c8 Fix integration tests compatibility with PHP 8.1
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00