Commit Graph

656 Commits

Author SHA1 Message Date
Jan Lysý
13b4c74c00 Use Doctrine in SubscriberActions integration tests
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Rodrigo Primo
030bd8c1c8 Fix PHPStan parameter type error introduced after update to version 0.12.83
This commit fixes the following PHPStan errors introduced after the update to version 0.12.83:

```
 ------ ----------------------------------------------------------------------
  Line   lib/Newsletter/Renderer/Blocks/Footer.php
 ------ ----------------------------------------------------------------------
  18     Parameter #1 $html of method MailPoet\Util\pQuery\pQuery::parseStr()
         expects string, array|string|null given.
 ------ ----------------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   lib/Newsletter/Renderer/Blocks/Header.php
 ------ ----------------------------------------------------------------------
  18     Parameter #1 $html of method MailPoet\Util\pQuery\pQuery::parseStr()
         expects string, array|string|null given.
 ------ ----------------------------------------------------------------------
```

[MAILPOET-3491]
2021-04-12 08:55:14 +02:00
Rostislav Wolny
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
fc66381da2 Remove client side checks for trashing lists
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
f066bc8fdd Disallow trashing single dynamic segment with active email
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
wxa
873677ee3e Inject WPFunctions into Shortcodes class
[MAILPOET-3465]
2021-03-22 12:19:59 +01:00
wxa
4ea2337814 Add WP style shortcodes support to emails
Also pass shortcode arguments to custom shortcode functions

[MAILPOET-3465]
2021-03-22 12:19:59 +01:00
Jan Lysý
7968db94ff Update integration tests for usage SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
dffaab10a2 Use getCurrentWPUser from SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Pavel Dohnal
deb4d7833d Fix text align
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
Pavel Dohnal
8608bc7875 Use newsletter sent at in dates shortcode
[MAILPOET-3375]
2021-03-10 14:38:05 +01:00
Jan Lysý
878e3eb28f Simplify newsletter body data repair
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
9441d32bdd Use service for fix newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
e443e3918d Add service for fixing newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
93e97717f7 Add missing return type to NewsletterOptionsRepository
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
09acbb0d07 Use Doctrine instead of Paris in Import
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Pavel Dohnal
aad1495262 Prevent deleting lists with emails that are being sent
[MAILPOET-3417]
2021-02-17 16:31:31 +01:00
Rostislav Wolny
dc4727117c Fix view in browser link shortcode and extend test
[MAILPOET-3434]
2021-02-17 16:11:59 +01:00
Pavel Dohnal
5b5e01465c [MAILPOET-3408] 2021-02-10 14:52:20 +01:00
Jan Lysý
9e9270f13b Use email heading from Woo for email header
We want to use email heading from Woo in title of rendered email for
WooCommerce Transactional Email.

[MAILPOET-3329]
2021-01-25 11:08:00 +01:00
Jan Lysý
4390a1932d Remove phpstan errors from the rest of the code
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Pavel Dohnal
6f0171373c Add email subjects to the response
[MAILPOET-3168]£
2021-01-08 10:37:50 +01:00
Jan Lysý
8f41628d29 Add scheduled emails subjects into segments API response
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
Rostislav Wolny
d13f63b3e2 Fix other minor type issues in libs
[MAILPOET-3926]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
8d7625fc3c Fix argument passed by reference exception
This fails on PHP8. Passing by reference was introduced int this commit
a587b0a966
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Pavel Dohnal
56d7cd1398 Fix rendering shortcodes in subject
[MAILPOET-3333]
2020-12-03 14:11:53 +01:00
Rostislav Wolny
46322825d5 Fix some newsletter shortcodes not being interpreted
The issue was happening because array_unique keeps original keys and $processedShortcodes after refactoring contains different keys.
Application of array_intersect_key removed some processed short codes. After reseting keys in extracted shortcodes array_intersect is no longer needed.
[MAILPOET-3312]
2020-11-23 09:26:11 +01:00
Rostislav Wolny
e22c192078 Set new hash when duplicating newsletter
[MAILPOET-3275]
2020-11-19 13:06:17 +01:00
Pavel Dohnal
ab009864a2 Remove constant that is not used any more
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Pavel Dohnal
1724d3b698 Remove usless annotation
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Pavel Dohnal
fcbfd6fb68 Refactor shortcode categories to doctrine
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Pavel Dohnal
6139e300c3 Free up shortcodes constructor for DI
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Pavel Dohnal
7d538abad8 Refactor tracking into doctrine
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Pavel Dohnal
4134e6e882 Use doctrine in Shortcodes Helper
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Rostislav Wolny
b97dee0bfe Refactor welcome newsletter scheduler to Doctrine
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
6fcb485e61 Forbid scheduling of welcome email form trashed segment or subscriber
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Jan Lysý
080a822135 Rename function in NewslettersRepository
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Jan Lysý
3479783588 Use WP currentTime when newsletter is duplicated
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Jan Lysý
c68728670e Remove using Idiorm from Newsletter::duplicate
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Jan Lysý
ca50d6df1d Remove using Idiorm from Newsletter::create
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Jan Lysý
d5aac0778d Use Doctrine in Newsletter::setStatus()
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Jan Lysý
4843c124ef Move prefetch newsletter methods to repository
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
Pavel Dohnal
78118b07e8 Refactor to doctrine
[MAILPOET-2335] [MAILPOET-2334]
2020-10-22 11:54:41 +02:00
Rostislav Wolny
e5a671900b Update Carbon usage in lib
[MAILPOET-3232]
2020-10-21 12:33:50 +02:00
Pavel Dohnal
9e8ccd2c17 Use native array_column
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
wxa
d9a0bccd1d Fix items not updating when rescheduling abandoned cart email [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
wxa
0dffed35e9 Extract ALC and ACC block classes out of block renderer [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
wxa
fd6ff25cd9 Make render preview call more readable [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
wxa
52b84296b3 Add abandoned cart block rendering in email [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
wxa
e4c435f81b Allow hiding read more button [MAILPOET-2979] 2020-10-07 11:48:50 +02:00