Commit Graph

217 Commits

Author SHA1 Message Date
Rostislav Wolny
26472d8b9a Introduce ContainerWrapper
Container wrapper wraps both premium and free containers and adds ability for free plugin to use premium plugin services directly.
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
Rostislav Wolny
b5bc4b2609 Replace symfony container types by PSR interface
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
Jan Jakeš
bf7e6a601e Move prefixed dependencies from lib/Dependencies to vendor-prefixed
[MAILPOET-1642]
2018-11-20 14:11:33 +01:00
Rostislav Wolny
d49b2a72a9 Refactor JSON API to use container for creating endpoints
[MAILPOET-1637]
2018-11-15 09:04:15 +01:00
Rostislav Wolny
a42787d10d Refactor MP v1 API to obtain services via constructor
[MAILPOET-1637]
2018-11-15 09:03:43 +01:00
Pavel Dohnal
05d054dfad Make menu icon retina friendly
[MAILPOET-1559]
2018-11-07 16:42:02 +01:00
Rostislav Wolny
f39c0c58c2 Add dumpContainer to container factory
[MAILPOET-1605]
2018-10-31 17:26:47 +01:00
Rostislav Wolny
fff8176a49 Refactor lib/Router to use with container for endpoints
[MAILPOET-1605]
2018-10-31 17:26:47 +01:00
Rostislav Wolny
71ad9f50cb Add container factory and initialize container in Initializer
[MAILPOET-1605]
2018-10-31 17:26:47 +01:00
Pavel Dohnal
4a641ba94e Create permanent notices
[MAILPOET-1492]
2018-09-19 10:24:37 +02:00
Tautvidas Sipavičius
c68f58a7c0 Display PHP version warning via notice filter instead of stdout 2018-08-23 15:06:21 +03:00
Pavel Dohnal
7e843b5fdf Show a survey on plugin deactivation
[MAILPOET-1386]
2018-06-12 15:52:25 +01:00
Fred. P
ac47866295 Fix image fullwidth toggle [MAILPOET-1365]
Prevent WordPress $content_width global to override
mailpoet_image_size when calling wp_get_attachment_image_src()
in ACL generated posts.
2018-06-05 08:59:57 +02:00
Amine Ben hammou
fbd11cf848 fixing fatal error when using wp_add_privacy_policy_content in init hook 2018-05-21 07:47:17 +00:00
pavel-mailpoet
572cc1671b Merge branch 'master' into gdpr-privacy-policy 2018-05-14 12:13:21 +01:00
Pavel Dohnal
f5c56bf492 Add privacy policy
[MAILPOET-1360]
2018-05-10 11:39:14 +01:00
Pavel Dohnal
bd01b5855e Add subscriber eraser for GDPR
[MAILPOET-1359]
2018-05-09 09:28:04 +01:00
Pavel Dohnal
df58322f0e Move old versions code to own class
[MAILPOET-1316]
2018-05-04 15:33:56 +01:00
Pavel Dohnal
8e13eb50bf Export lists for email
[MAILPOET-1354]
2018-05-03 16:33:22 +01:00
Vlad
d13aa67a07 Centralizes widget logic in one place
Cleans up code
2017-12-09 19:45:19 -05:00
Vlad
94c7e2a5c0 Changes plugin language based on user's locale 2017-11-22 20:13:56 -05:00
Vlad
3ad490f840 Loads translations before the rest of the plugin 2017-10-23 21:45:48 -04:00
stoletniy
23eb4633c4 Remove the check for a plugin update permission [MAILPOET-1130] 2017-10-02 15:44:06 +03:00
stoletniy
3af059f5c4 Fix MailPoet icon displaying in Members tab on production [MAILPOET-493] 2017-10-02 10:22:40 +01:00
stoletniy
a4f2d5402c Manage MP3 permissions with WP role capabilities, add Members plugin support [MAILPOET-493] 2017-10-02 10:22:40 +01:00
Tautvidas Sipavičius
279c36a30d Merge pull request #1094 from mailpoet/initializer_update
Updates plugin initialization logic [MAILPOET-1097]
2017-09-12 12:34:27 +03:00
Vlad
ba86cbfb18 Updates unit test 2017-09-11 11:40:14 -04:00
Vlad
2ac7d1d4ab Breaks plugin initialization into 3 stages: preInit, init and postInit 2017-09-11 11:33:03 -04:00
Vlad
b0343254c0 Renames db version setting value 2017-09-11 10:05:09 -04:00
Vlad
dff9c1012b Moves widget initialization back to widgets_init hook
Removes priority from plugin initialization
2017-09-10 19:49:05 -04:00
Vlad
98482cebf9 Uses plugin's settings to store DB version 2017-09-10 16:31:36 -04:00
Vlad
77f3a875dd Does not set global is_rtl variable 2017-09-06 20:56:52 -04:00
stoletniy
79b5426e01 Fix a constant name [MAILPOET-1076] 2017-08-30 17:47:53 +03:00
Vlad
0ee39143f4 Runs hooks setup only when plugin is initilized 2017-08-30 09:50:49 -04:00
Vlad
59482b2bfa Uses init hook to initilize AccessControl 2017-08-29 23:30:35 -04:00
Vlad
053f9e0cdf Adds higher priority to init hook so that it fires before the widgets hook 2017-08-29 23:20:46 -04:00
Vlad
e1cc25239b Maintains code consistency when setting up JSON API
Updates exception handler return statement
2017-08-29 20:33:50 -04:00
Vlad
2f4452ad36 Removes redundant exception handler 2017-08-29 20:28:20 -04:00
Vlad
f453d685d6 Fixes translation not being picked up by makepot 2017-08-29 20:24:04 -04:00
Vlad
2d2b4ca7f0 Moves setup actions from plugins_loaded hook to init hook
Rearranges class methods to follow the order by which they are called
2017-08-29 20:22:19 -04:00
Vlad
af58814fe7 Moves AccessControl intialization outside of Router to Initializer 2017-08-24 13:56:17 -04:00
Vlad
7d9b4b31aa Removes unused constructor parameter 2017-08-24 13:37:49 -04:00
Vlad
316fa91a10 Moves AccessControl initialization outside of API to Initializer 2017-08-23 11:28:09 -04:00
Vlad
efa231b08f Removes AccessControl from Migrator and Changelog 2017-08-22 09:06:20 -04:00
Vlad
8d8dfaa11f Uses Intializer to check permissions before running Activator 2017-08-22 09:06:20 -04:00
Vlad
2e5554a3af Refactors AccessControl and passes it as dependency to JSON API and Menu 2017-08-22 09:06:20 -04:00
Vlad
632bce7894 Adds AccessControl class that defines permissions for major plugin
operations
2017-08-22 09:04:39 -04:00
Amine Ben hammou
f7e73b06be added missing argument 2017-08-08 10:02:51 +00:00
Amine Ben hammou
9859df98b7 translate the DB error message 2017-07-31 08:53:30 +00:00
Amine Ben hammou
c413acd93d display a warning when unable to connect to database 2017-07-19 16:05:34 +01:00