Commit Graph

46 Commits

Author SHA1 Message Date
Rostislav Wolny
1c0d505f27 Reintroduce reporting subscribers on settings save
It might be useful to have the count reported right after activation
so that we could potentially use those data in the shop.
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
ffe291c521 Add cron worker for reporting subscriber stats
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
b07326aaa4 Remove reporting of subscribers count on settings save
We will report regularly once a day within a new cron worker.
[MAIPOET-3868]
2021-11-03 13:31:29 +01:00
Pavel Dohnal
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Rostislav Wolny
bdb6477b4b Replace usages of Subscriber::getTotalCount by Subscribers service
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Pavel Dohnal
5d17304ead Mark old function as deprecated
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
f8a16b5e5a Remove public properties from renderer
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
cde877122a Fix various undefined variables and argument types [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Pavel Dohnal
5e5d4c3ff8 Ensure the correct instance
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Jan Jakeš
15acedc94f Remove static (mis)usages of Mailer::getMailerConfig()
[MAILPOET-2515]
2019-11-14 10:02:28 +00:00
Jan Jakeš
d970dda637 Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
Jan Jakeš
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
wxa
7f40e5b512 Clean up unused imports [MAILPOET-2208] 2019-07-19 08:54:50 -04:00
Rostislav Wolny
f86c0c9612 Refactor authorized emails validation from Bridge to Controller
[MAILPOET-2022]
2019-06-03 12:54:24 -04:00
Rostislav Wolny
4c7ad60a72 Add authorized emails check on emails settings change
[MAILPOET-1987]
2019-05-21 09:58:29 -04:00
Rostislav Wolny
11ba49bb1e Add authorized emails check to Bridge service
[MAILPOET-1987]
2019-05-21 09:58:29 -04:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Ján Mikláš
3ee58aea10 Add space between if 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
Rostislav Wolny
9399e19e3b Refactor MailPoet\Router, Services to use new settings
[MAILPOET-1757]
2019-01-31 15:57:58 +01:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Vlad
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -05:00
Vlad
aa4d78b1c9 Adds method to ping Bridge 2017-12-03 11:38:44 -05:00
stoletniy
eff996e1f8 Unify key state constant names, leave back compat with unlocker [MAILPOET-1070] 2017-08-29 10:58:16 +03:00
Vlad
1745b67d64 Adds 403 response code that mirrors 401 behavior 2017-08-28 21:25:54 -04:00
Pavel Dohnal
440052cf2c Remove duplicate code
[MAILPOET-1035]
2017-07-31 16:51:11 +02:00
Pavel Dohnal
ccb751b44a Adhere to updated MSS /me response
[MAILPOET-1035]
2017-07-31 16:47:20 +02:00
Pavel Dohnal
7cf3d0960d Unify API response constants
[MAILPOET-1035]
2017-07-31 13:51:23 +02:00
stoletniy
0e5401dd68 Fix keys being invalidated after saving settings [MAILPOET-963] 2017-06-22 11:55:15 +01:00
stoletniy
1aba3112e9 Separate checking and storing of the keys [MAILPOET-939] 2017-06-15 13:00:56 +03:00
stoletniy
f7efe44f09 Fix ServicesChecker behavior, make MSS check stricter [MAILPOET-890] 2017-06-07 12:30:38 +03:00
stoletniy
7aa0f21d11 Rework 'Send with...' tab UI, make a single license key field [MAILPOET-890] 2017-06-07 12:30:37 +03:00
Alexey Stoletniy
f2bf61240a Extract a state building method from key check results processing [PREMIUM-4] 2017-05-08 08:01:51 +03:00
Alexey Stoletniy
98eab956e9 Rename checkAPIKey to checkMSSKey (MailPoet Sending Service) [PREMIUM-4] 2017-05-05 18:12:48 +03:00
Alexey Stoletniy
787e022382 Rename license key constants and vars, optimize error generation [PREMIUM-4] 2017-05-05 18:04:52 +03:00
Alexey Stoletniy
3cb08e3c09 Rename MSS check methods to better distinguish them from Premium ones [PREMIUM-4] 2017-05-04 09:36:38 +03:00
Alexey Stoletniy
0474985866 Add unit tests [PREMIUM-4] 2017-05-04 09:25:34 +03:00
Alexey Stoletniy
0fbc7fb7eb Add Premium key validation [PREMIUM-4] 2017-05-03 12:20:13 +03:00
Alexey Stoletniy
dc371d76ca Rework subscriber count reporting after a code review [MAILPOET-804]
Move updateSubscriberCount() out of checkKey()
Move wp_remote_post() to request()
Simplify a response check
2017-02-01 21:04:11 +03:00
Alexey Stoletniy
be0c9b71d8 Add subscriber count reporting on Sending Service key validation [MAILPOET-804] 2017-02-01 15:58:49 +03:00
Alexey Stoletniy
98d6f55a6e Tweak Sending Service key validation after a code review [MAILPOET-743]
* Abstract key state to unbound it from the API response codes
* Rename SendingServiceKeyCheck task for clarity
* Add a setter for the API key in the Bridge API class
* Make some smaller fixes
2017-01-27 16:22:11 +03:00
Alexey Stoletniy
438b4fb1ec Add unit tests [MAILPOET-743] 2017-01-27 16:22:09 +03:00
Alexey Stoletniy
1f91d40def Add sending service key validation [MAILPOET-743] 2017-01-27 16:20:26 +03:00