Commit Graph

3270 Commits

Author SHA1 Message Date
wxa
2ccfe14708 Add an index to the newsletter links url [PREMIUM-114] 2019-03-04 07:50:00 -05:00
wxa
abaf7e5c93 Make models without 'deleted_at' field duplicable [PREMIUM-114] 2019-03-04 07:50:00 -05:00
Amine Ben hammou
b5bc6ec3c6 Remove ununsed method 2019-02-28 15:56:40 -05:00
Amine Ben hammou
4a64fff0ff Optimize queries on WordPress trigger 2019-02-28 15:56:40 -05:00
Amine Ben hammou
ef0f6c9a5a Reduce the number of SQL queries 2019-02-28 15:56:40 -05:00
Amine Ben hammou
4dbca3efb3 Remove unnecessary condition 2019-02-28 15:56:40 -05:00
Ján Mikláš
602929356c Show unauthorized address right after sending email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
bad69b0e24 Save translated message to logs, not just translation key
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
af39ae89c4 Use DI for ServicesChecker
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
b95dc9296c Move generating 403 error messages to separate methods
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
b5224927d0 Remove unused optional parameters, make function private, since it's not used outside
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
5c78028232 Add rel="noopener noreferrer" to links
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
a79b60b17a Check if key exists
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
f5feb032fe Show error notice when email is sent from unauthorized email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
79bd178123 Add integration test for unauthorized email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
1da2263d83 Allow showing error notice without "MailPoet Error:" title
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
833d197753 Allow rendering WP notices without paragraph element
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
91c88bc93f Better error code name when not able to send mails
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Pavel Dohnal
6b0f7c70ad Update LAST_ANNOUNCEMENT_DATE
[MAILPOET-1833]
2019-02-25 11:17:38 -05:00
Rostislav Wolny
1868d1e45f Add a lazy instantiation of Mailer in NewSubscriberNofiticationMailer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
ccc300cd80 Remove container dependency from Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
6048ccba85 Inject CronTrigger into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
096359741d Inject Hooks, Changelog and Menu into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
db8c68460d Inject Router into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
4a6fb923e0 Inject Activator and SettingsController into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
d5ea906433 Inject API into Initializer using container
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
f64e1c81fe Inject AccessControl into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
b1c9133330 Add current_user_can WP function into WPFunctions wrapper
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
1179747324 Refactor AccessControl static methods to instance methods
[MAIPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
171b3564f9 Inject Renderer to Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
d8503cf3c2 Create Initializer using DI
[MAIPOET-1823]
2019-02-25 06:38:25 -05:00
Rostislav Wolny
b7bc54a07e Move Env init out of Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Pavel Dohnal
bed80e67f1 Use phpstan level 2
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
wxa
2f487fd300 Inject subscribe() action instead of calling it statically [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
wxa
7528f0f52b Move subscribe() method to a separate class an make it non-static [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
Ján Mikláš
c9c6c0651e Replace Stylus with SCSS, update watch and compile tasks
[MAILPOET-1813]
2019-02-21 08:26:32 -05:00
Rostislav Wolny
df40833024 Add deprecation warning for Setting::getValue
[MAILPOET-1802]
2019-02-13 12:30:33 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
a935b091d3 Add space between elseif/else if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
100db25ed9 Add space between while and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
9e9561e576 Add space between catch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
fba2914392 Add space between for and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Amine Ben hammou
102a994a81 Fix small templates issues 2019-02-13 07:00:36 -05:00
Amine Ben hammou
3c96187f63 Update some templates 2019-02-13 07:00:36 -05:00
Amine Ben hammou
9ce086f949 Add new templates [MAILPOET-1671] 2019-02-13 07:00:36 -05:00
wxa
6844317cae Remove a redundant switch statement [MAILPOET-1723] 2019-02-12 08:56:40 -05:00
wxa
6258ea6d1f Use encapsulated WP function [MAILPOET-1723] 2019-02-12 08:56:40 -05:00