Commit Graph

221 Commits

Author SHA1 Message Date
a5b964c785 Add try-catch for activation hook
[MAILPOET-3656]
2021-06-14 14:56:26 +02:00
d5f6f63ebe Use option filters instead of synchronization Woo email styles
With this change the Woo template editor will never overwrite Woo commerce settings,
but replace values of those settings using hooks.
[MAILPOET-3645]
2021-06-14 14:30:01 +02:00
c7e4fa32b0 Rename method in initializer
[MAILPOET-3537]
2021-05-24 14:59:40 +02:00
a0a0313c46 Use WP transient for lock running migrations
[MAILPOET-3537]
2021-05-24 14:59:40 +02:00
5347714bbe Use AssetsLoader for enqueue css in formEditor
[MAILPOET-3556]
2021-04-21 14:19:27 +02:00
653d832ee9 Drop MailPoet tables when a site is deleted in a multisite install
This commit makes sure MailPoet tables are dropped when a site is
deleted in a multisite install. It uses the filter `wpmu_drop_tables`
to add the list of MailPoet tables to the list of tables that WP drops
whenever a site is deleted in a multisite install. $wpdb is used instead
of Doctrine entity manager as the latter is not affected by calls to
switch_to_blog() which is used in this case to switch from the main site
to the site being deleted.

This will only work if MailPoet is network active. If it is not,
MailPoet code is not executed inside the WP network admin panel,
and thus our filter is not added to wpmu_drop_tables, and MP tables
are not deleted.

[MAILPOET-3265]
2021-03-03 09:26:03 +01:00
51877fe1eb Reactor loading of wp-admin/includes/plugin.php
Requiring WordPress PHP file within Initializer was causing errors in static analysis that runs without WordPress source.
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
wxa
9359143346 Do not call hooks on repeated getAutomaticEmails calls (e.g. in editor) [MAILPOET-2433] 2020-11-11 14:27:36 +01:00
wxa
4661eab49e Merge WC email initialization into newsletters listing page [MAILPOET-2433] 2020-11-11 14:27:36 +01:00
wxa
56868ce0db Remove unnecessary template inclusion, fix automatic email step name in email editor [MAILPOET-2433] 2020-11-11 14:27:36 +01:00
4897581748 Add Localizer to DI
[MAILPOET-2942]
2020-06-15 14:38:32 +02:00
fbc6786058 Split class to prevent circular dependency
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
fd2c13a2e3 Refactor block registering
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
261624c2bb Create basic block
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
wxa
20d42af4dc Remove the WC customizer feature flag [MAILPOET-2285] 2019-12-24 17:01:32 +03:00
wxa
fa81c24825 Sync WC customizer styles to WooCommerce settings [MAILPOET-2569] 2019-12-23 21:55:40 +03:00
e677fa7cba Move requirement checker up
We need to check missing extension earlier, before they are used

[MAILPOET-2564]
2019-12-19 13:42:30 +00:00
aa129f5987 Use template for WooCommerce transactional emails
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
c829be1a11 Move automatic email initialization from Premium plugin
[MAILPOET-2382]
2019-10-08 14:22:55 +01:00
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
a6db3dceed Remove unused mailpoet cookie session
[MAILPOET-2343]
2019-09-25 19:53:52 +01:00
952b9d7dd4 Initialise hooks early
[MAILPOET-2307]
2019-09-12 16:34:31 +02:00
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
d3d572faa9 Open KB links in Beacon popover
[MAILPOET-2179]
2019-08-28 14:28:06 -04:00
ee1cee27dc Inject Session into Initializer using DI
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
8c26e2852b Update KB links to new URL
[PREMIUM-127]
2019-07-31 16:16:56 -04:00
0045683d92 Share PDO connection between Doctrine and legacy ORM
[MAILPOET-2014]
2019-07-24 15:03:16 -04:00
wxa
b174a55d07 Handle captcha during subscription [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
7f40e5b512 Clean up unused imports [MAILPOET-2208] 2019-07-19 08:54:50 -04:00
wxa
a2df2cc7bd Refactor subscription pages and config shortcodes to DI [MAILPOET-2208] 2019-07-19 08:54:50 -04:00
7418543694 Initialize Hooks on the init action 2019-07-08 14:15:59 -04:00
74a4ff5a2f Use DI to initialize PermanentNotices
[MAILPOET-2088]
2019-06-20 09:22:12 -04:00
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
ccc300cd80 Remove container dependency from Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
6048ccba85 Inject CronTrigger into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
096359741d Inject Hooks, Changelog and Menu into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
db8c68460d Inject Router into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
4a6fb923e0 Inject Activator and SettingsController into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
d5ea906433 Inject API into Initializer using container
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
f64e1c81fe Inject AccessControl into Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
171b3564f9 Inject Renderer to Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
d8503cf3c2 Create Initializer using DI
[MAIPOET-1823]
2019-02-25 06:38:25 -05:00
b7bc54a07e Move Env init out of Initializer
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
9e9561e576 Add space between catch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00