Jan Jakes
1f92ac551e
Use alias that is not a keyword
...
Together with fixing the MySQL platform detection this is not necessary,
but it's easy to use a safe alias that is not a keyword, in this case.
[MAILPOET-6232]
2024-09-17 09:37:58 +02:00
Jan Jakes
b512079ce2
Replace settings fetch() calls with cached get()
2024-09-13 10:34:55 +02:00
Jan Jakes
b32c6aa233
Remove no longer needed populator logic
2024-09-13 10:34:55 +02:00
Jan Jakes
a416cecddf
Optimize populating newsletter option fields
2024-09-13 10:34:55 +02:00
Jan Jakes
974add271a
Optimize populating newsletter templates
2024-09-13 10:34:55 +02:00
Jan Jakes
57bdfec18e
Replace WPDB with Doctrine DBAL query builder in populator
...
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Lysý
b1248cca0d
Use placeholders and comments
...
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
f584a673cb
Temporarily skip queries incompatible with SQLite
...
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
4b69005900
Use subquery in DELETE for SQLite
...
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Rostislav Wolny
33f4b2d729
Replace usage of WP's current_time without gmt parameter in libs
...
This commit replaces usages by Carbon::now or in case we need a timestamp it
keeps current_time but adds the gtm parameter as true.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
c25d7d6b53
Use single quotes for strings in SQL queries
...
This is more standard SQL and required by WPDB.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Ján Mikláš
e640fa10cb
Add default value for opt-in position to Populator
...
[MAILPOET-5807]
2024-08-07 15:43:42 +02:00
John Oleksowicz
23806b6395
Schedule initial mixpanel task
...
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
77aef00652
Use constant instead of hardcoding option value
...
MAILPOET-5509
2023-08-31 14:16:10 +02:00
John Oleksowicz
5b39092cb6
Add newsletter option for filter segment id
...
MAILPOET-5509
2023-08-31 14:16:10 +02:00
Brezo Cordero
ee882b99e9
Use admin_email as default sender.
...
[MAILPOET-5498]
2023-08-07 13:22:53 +02:00
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