Commit Graph

91 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š
8c848cfa28 Convert property names to camel case
[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
Pavel Dohnal
8fb58450ed Use inferPrivatePropertyTypeFromConstructor
[MAILPOET-2568]
2019-12-10 13:24:17 +01: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
wxa
8fb18e7c2e Extract usage of emoji encoding from the sending queue model [MAILPOET-2460] 2019-10-24 10:57:36 +01: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
1528648149 Remove aspect mock from php version notice
[MAILPOET-2321]
2019-08-29 13:55:49 -04: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
Ján Mikláš
f5feb032fe Show error notice when email is sent from unauthorized email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
1da2263d83 Allow showing error notice without "MailPoet Error:" title
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
833d197753 Allow rendering WP notices without paragraph element
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Rostislav Wolny
b1c9133330 Add current_user_can WP function into WPFunctions wrapper
[MAILPOET-1823]
2019-02-25 06:38:25 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00