Commit Graph

663 Commits

Author SHA1 Message Date
7857b95fde Add a comment about unsupported blocks
[MAILPOET-3437]
2021-06-01 10:02:30 +02:00
70b2b3c40e Remove unused code
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
7426479631 Remove usage of deprecated method
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
9e44ee74a6 Create a doctrine version for isSubscriberProcessed
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
df7b961768 Fix 1px line rendering bug in Outlook 2016
[MAILPOET-3448]
2021-05-26 09:34:58 +02:00
95fc533649 Fix getting automated content for type media
[MAILPOET-3542]
2021-05-25 17:59:08 +02:00
39f8dfae5b Sanitize only specific block types in newsletter API data
[MAILPOET-3538]
2021-05-03 14:20:07 +02:00
13b4c74c00 Use Doctrine in SubscriberActions integration tests
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
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
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
fc66381da2 Remove client side checks for trashing lists
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
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
7968db94ff Update integration tests for usage SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
dffaab10a2 Use getCurrentWPUser from SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
deb4d7833d Fix text align
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
8608bc7875 Use newsletter sent at in dates shortcode
[MAILPOET-3375]
2021-03-10 14:38:05 +01:00
878e3eb28f Simplify newsletter body data repair
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
9441d32bdd Use service for fix newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
e443e3918d Add service for fixing newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
93e97717f7 Add missing return type to NewsletterOptionsRepository
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
09acbb0d07 Use Doctrine instead of Paris in Import
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
aad1495262 Prevent deleting lists with emails that are being sent
[MAILPOET-3417]
2021-02-17 16:31:31 +01:00
dc4727117c Fix view in browser link shortcode and extend test
[MAILPOET-3434]
2021-02-17 16:11:59 +01:00
5b5e01465c [MAILPOET-3408] 2021-02-10 14:52:20 +01:00
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
4390a1932d Remove phpstan errors from the rest of the code
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
6f0171373c Add email subjects to the response
[MAILPOET-3168]£
2021-01-08 10:37:50 +01:00
8f41628d29 Add scheduled emails subjects into segments API response
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
d13f63b3e2 Fix other minor type issues in libs
[MAILPOET-3926]
2020-12-07 11:36:01 +01:00
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
56d7cd1398 Fix rendering shortcodes in subject
[MAILPOET-3333]
2020-12-03 14:11:53 +01:00
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
e22c192078 Set new hash when duplicating newsletter
[MAILPOET-3275]
2020-11-19 13:06:17 +01:00
ab009864a2 Remove constant that is not used any more
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
1724d3b698 Remove usless annotation
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
fcbfd6fb68 Refactor shortcode categories to doctrine
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
6139e300c3 Free up shortcodes constructor for DI
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
7d538abad8 Refactor tracking into doctrine
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
4134e6e882 Use doctrine in Shortcodes Helper
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
b97dee0bfe Refactor welcome newsletter scheduler to Doctrine
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
6fcb485e61 Forbid scheduling of welcome email form trashed segment or subscriber
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
080a822135 Rename function in NewslettersRepository
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
3479783588 Use WP currentTime when newsletter is duplicated
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
c68728670e Remove using Idiorm from Newsletter::duplicate
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
ca50d6df1d Remove using Idiorm from Newsletter::create
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
d5aac0778d Use Doctrine in Newsletter::setStatus()
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
4843c124ef Move prefetch newsletter methods to repository
[MAILPOET-2946]
2020-10-27 15:00:14 +01:00
78118b07e8 Refactor to doctrine
[MAILPOET-2335] [MAILPOET-2334]
2020-10-22 11:54:41 +02:00