Commit Graph

24 Commits

Author SHA1 Message Date
29e2cebce3 Add getOrdersCount() to WooCommerce helper
[MAILPOET-1732]
2019-04-25 08:21:12 -04:00
534dc140f7 Use WP function to parse DB_HOST
This change will enable using MailPoet on sites which are using ipv6 addresses in DB_HOST
[MAILPOET-1907]
2019-04-16 11:11:28 +03:00
3e66e9e1dd Fix phpstan level 6
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00
6f85c27d4f Fix PHPStan warnings 2019-03-28 15:20:28 -04:00
5c2b34e9da Move WC functions to WC Helper 2019-03-28 15:20:28 -04:00
5bd51baef8 Fix tests 2019-03-28 15:20:28 -04:00
dce4f4ece8 Rewrite WPFunctions methods 2019-03-28 15:20:28 -04:00
f128b2471d Fix some typos 2019-03-07 08:30:14 -05:00
ab097d356a Fix PHPStan errors 2019-03-07 08:30:14 -05:00
3ff55d85a9 Fix tests 2019-03-07 08:30:14 -05:00
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
986482e34b Make WPFunctions a singleton and add WP fns 2019-03-07 08:30:14 -05:00
b1c9133330 Add current_user_can WP function into WPFunctions wrapper
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
wxa
6258ea6d1f Use encapsulated WP function [MAILPOET-1723] 2019-02-12 08:56:40 -05:00
f1c7e48176 Remove debugging code 2019-01-31 13:28:29 +01:00
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
d452cfcae7 Wrap calls in DateTime and Emoji classes 2019-01-31 13:23:32 +01:00
b663d9761e Encapsulate is_user_logged_in function 2019-01-30 13:59:49 +01:00
b66c724c4a Fix tests
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
aac7744dee Fix case in use statements 2018-11-15 11:41:04 +01:00
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
d317eb4fbd Adds unit test 2018-03-20 16:30:28 -04:00
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -05:00