Commit Graph

4663 Commits

Author SHA1 Message Date
Amine Ben hammou
8d83a72259 Allow usage of woocommerce domain in translation functions
[MAILPOET-2281]
2019-10-01 15:10:52 +01:00
Jan Jakeš
5214e93787 Add sniff for use empty line spacing, fix found occurences
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Ján Mikláš
51284bc883 Fix tests
[MAILPOET-2378]
2019-10-01 14:24:12 +01:00
Ján Mikláš
0bd46d72e0 Introduce GET only API endpoints
[MAILPOET-2378]
2019-10-01 14:24:12 +01:00
Ján Mikláš
e768778691 Allow API to accept GET requests
[MAILPOET-2378]
2019-10-01 14:24:12 +01:00
Pavel Dohnal
8a5cd7c353 Remove intro
[MAILPOET-2402]
2019-10-01 14:17:37 +01:00
Rostislav Wolny
4fbf8ed7be Replace unsubscribe link short code strings by constant
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
Rostislav Wolny
6ae61a3e9b Refactor array_column call using use statement
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
Rostislav Wolny
86fd634563 Mark Newsletter/Links methods used only internally as private
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
Rostislav Wolny
44c6e5db91 Ensure that unsubscribe link is always saved before sending
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
Rostislav Wolny
028c5e6de5 Add ensure unsubscribe link method to newsletters links
[MAILPOET-2245]
2019-10-01 14:07:39 +01:00
Pavel Dohnal
17474e66cc Handle incorrect group gracefully
[MAILPOET-1953]
2019-09-30 20:01:43 +01:00
wxa
26041d61a7 Fix rescheduling of outdated tasks [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
12c526e120 Merge SingleInstanceSimpleWorker into SimpleWorker [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
0805dc365f Make startProgress() and stopProgress() methods private [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
2a48d0846d Move exception handling from concrete workers into processTask() [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
2a0bf3f3c8 Extract rescheduling out of the isInProgress() check [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
f598137f3b Ensure that getMeta() returns an array in the scheduled task model [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
ce645306a5 Use single instance protection for inactive subscribers sync [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
9b1f7f2d8c Refactor WooCommerce sync worker to use common single instance protection [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
wxa
b5106d9d42 Add a single-instance simple worker [MAILPOET-2385] 2019-09-30 14:18:08 +01:00
Pavel Dohnal
09efcf0934 Fix template thumbnail
[MAILPOET-2399]
2019-09-30 14:09:19 +01:00
Pavel Dohnal
f25a744a57 Move Simple text template to a correct category
[MAILPOET-2399]
2019-09-30 14:09:19 +01:00
Pavel Dohnal
63f126c7c7 Use better function to check url parametter
On some nginx installations we got null as
an array value and isset returned false

[MAILPOET-2393]
2019-09-26 13:52:38 +01:00
Pavel Dohnal
c885a395c2 Pre-fetch editor script
[MAILPOET-2376]
2019-09-25 20:21:41 +01:00
Rami Yushuvaev
f0afcbcdce i18n: use %s placeholders instead of [number]
Replace `[number]` with `%s` using `sprintf()` function.

Old string:

**Good news! MailPoet won’t send emails to your [number] inactive subscribers. This is a standard practice to maintain good deliverability and open rates. But if you want to disable it, you can do so in settings. [link]Read more.[/link]**

New string:

**Good news! MailPoet won’t send emails to your %s inactive subscribers. This is a standard practice to maintain good deliverability and open rates. But if you want to disable it, you can do so in settings. [link]Read more.[/link]**
2019-09-25 20:03:21 +01:00
Ján Mikláš
efcd7d6e1d Hide setting behind feature flag
[MAILPOET-2284]
2019-09-25 20:01:06 +01:00
Rostislav Wolny
a6db3dceed Remove unused mailpoet cookie session
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
Rostislav Wolny
8cef633548 Refactor captcha rendering to use updated captcha session
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
Rostislav Wolny
de3c519fbf Refactor subscribers API to use updated captcha session
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
Rostislav Wolny
fa4c2c8b8f Add ability to pass session_id in within captcha related urls
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
Rostislav Wolny
704117d37d Refactor captcha session to use internal session id
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
Pavel Dohnal
1bedf1fd1a Allow modifing cron limits
[MAILPOET-2367]
2019-09-25 13:21:17 +01:00
Rostislav Wolny
4d3a005b20 Inject LinkTokens dependency to SubscriptionUrlFactory using DI
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
0dd7b5fb7a Remove unnecessary aliases for SubcriptionUrlFactory
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
7dba4d900c Rename Subscription\Url to Subscription\SubscriptionUrlFactory
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
653dbe5783 Remove aspect mock from Confirmation mailer test
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
9b8da1f172 Refactor private Url::getPost to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
ae83364297 Refactor getSubscriptionUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
d90d5c6385 Refactor getUnsubscribeUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
4e75f8883e Refactor getManageUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
21fba11893 Add static factory method for Subscription Url
This method is temporary needed in for usage in fully static classes
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
3c4b60ede9 Refactor getConfirmationUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
14cf67d556 Refactor getCaptchaImageUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
54632b20c2 Refactor getCaptchaUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Rostislav Wolny
3d78d6b550 Add \MailPoet\Subscription\Url to DI config
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
Amine Ben hammou
173a80b3da Remove unused class import
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00
Amine Ben hammou
e588ebcee9 Use verifyToken()
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00