Commit Graph

53 Commits

Author SHA1 Message Date
Rostislav Wolny
b465e5205d Add srcset attribute rendering to image block renderer
Srcset is not rendered automatically when image is added in the content hook.
[MAILPOET-2750]
2020-04-08 12:04:47 +02:00
Jan Jakeš
eae5c5010d Fix properties with missing visibility
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
153c72cd77 Autofix long scalar typehints to short ones
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Pavel Dohnal
8da7330a8d Use wp class intead of calling functions directly
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
fd1e8ee915 Display forms only on default post types
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
e644675046 Use cache for forms rendering to
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
d667ad916e Add wp functions
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Jan Jakeš
f5927ea8ab Use camel case in new variables
[MAILPOET-2431]
2020-01-16 10:29:55 +00:00
Jan Jakeš
4e75bcd296 Implement API for Premium plugin installation and activation
[MAILPOET-2431]
2020-01-16 10:29:55 +00:00
Jan Jakeš
d0292f8624 Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Amine Ben hammou
9a8a353095 Fix PHPStan errors
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Pavel Dohnal
613e40d765 Fix linter errors
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Pavel Dohnal
75f1e97ee3 Make sure we use the correct type for wp functions
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
Amine Ben hammou
ad899e436c Add heading content
[MAILPOET-2278]
2019-10-18 09:41:34 +01:00
Jan Jakeš
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Ján Mikláš
270a5fc219 Fix parsing IPv6 in WP 4.7 and 4.8
Code copied from https://developer.wordpress.org/reference/classes/wpdb/parse_db_host/

[MAILPOET-2289]
2019-09-09 13:50:07 +01:00
Pavel Dohnal
45e1779a07 Remove callable typehint
Because we need to pass an array and that doesn't work

[MAILPOET-2219]
2019-08-28 12:48:22 -04:00
Pavel Dohnal
69e9b099d8 Prevent showing WC Customers UI to new WC website
[MAILPOET-2206]
2019-08-27 21:48:46 -04:00
Rostislav Wolny
6a494a2fae Introduce captcha session service
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
Amine Ben hammou
5d1623a083 Use PHP functions 2019-05-21 09:04:00 -04:00
Amine Ben hammou
879a36e0f2 Rename translation functions 2019-05-21 09:04:00 -04:00
Ján Mikláš
9745b0ab02 Show notice in Beamer when MailPoet update is available
[MAILPOET-2038]
2019-05-20 13:13:22 -04:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
wxa
48fe3de7e1 Update WP functions [PREMIUM-94] 2019-05-13 09:12:55 -04:00
Rostislav Wolny
388814d226 Add backward compatibility for wpdb parse_db_host
[MAILPOET-2023]
2019-05-02 13:41:13 -04:00
Ján Mikláš
810f2bd041 Exclude non-public posts hidden by 3rd-party plugins from ALC
[MAILPOET-1964]
2019-04-29 05:46:16 -04:00
Rostislav Wolny
29e2cebce3 Add getOrdersCount() to WooCommerce helper
[MAILPOET-1732]
2019-04-25 08:21:12 -04:00
Rostislav Wolny
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
Pavel Dohnal
3e66e9e1dd Fix phpstan level 6
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00
Amine Ben hammou
6f85c27d4f Fix PHPStan warnings 2019-03-28 15:20:28 -04:00
Amine Ben hammou
5c2b34e9da Move WC functions to WC Helper 2019-03-28 15:20:28 -04:00
Amine Ben hammou
5bd51baef8 Fix tests 2019-03-28 15:20:28 -04:00
Amine Ben hammou
dce4f4ece8 Rewrite WPFunctions methods 2019-03-28 15:20:28 -04:00
Amine Ben hammou
f128b2471d Fix some typos 2019-03-07 08:30:14 -05:00
Amine Ben hammou
ab097d356a Fix PHPStan errors 2019-03-07 08:30:14 -05:00
Amine Ben hammou
3ff55d85a9 Fix tests 2019-03-07 08:30:14 -05:00
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Amine Ben hammou
986482e34b Make WPFunctions a singleton and add WP fns 2019-03-07 08:30:14 -05:00
Rostislav Wolny
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
Amine Ben hammou
f1c7e48176 Remove debugging code 2019-01-31 13:28:29 +01:00
Amine Ben hammou
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
Amine Ben hammou
d452cfcae7 Wrap calls in DateTime and Emoji classes 2019-01-31 13:23:32 +01:00
Ján Mikláš
b663d9761e Encapsulate is_user_logged_in function 2019-01-30 13:59:49 +01:00
Pavel Dohnal
b66c724c4a Fix tests
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Jan Jakeš
aac7744dee Fix case in use statements 2018-11-15 11:41:04 +01:00