Commit Graph

5129 Commits

Author SHA1 Message Date
Jan Lysý
f140875062 Add missing property annotations used in tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
4390a1932d Remove phpstan errors from the rest of the code
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
479f2cf198 Remove phpstan error from DynamicSegments
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
7950804216 Remove phpstan error from Models
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
3a7beb6e3f Check API key cron jobs more randomly in time
[MAILPOET-3271]
2021-01-18 10:26:59 +01:00
Lunar
aa450a2ebe Source reCAPTCHA API only when needed
When using a subscription form as an iframe, our CSP catched up that the reCAPTCHA API was included despite MailPoet being configured to use its internal CAPTCHA. The following change will only output the relevant <script> tag when MailPoet uses reCAPTCHA.
2021-01-13 12:08:41 +01:00
Rostislav Wolny
952accc9d6 Mark Subscriber::getTotalSubscribers as deprecated
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
bdb6477b4b Replace usages of Subscriber::getTotalCount by Subscribers service
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
2c3f6488c2 Remove no longer needed fetching of WP user count
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
7c8f29a90d Get rid of premium_subscriber_count and load count using doctrine
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
e576002d70 Append subscribers limit notice with info about WP users segment
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
86add53c30 Always count WP user list towards the limit
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Pavel Dohnal
15528d84e0 Fix displaying woocommerce static segment in dynamic segments
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
Pavel Dohnal
822550f3c0 Refactor dynamic segments listings to doctrine
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
Barry Ceelen
11c9c3cd93 Missing i18n namespace in checkout optin label 2021-01-11 11:46:09 +01:00
Rostislav Wolny
03400bc4f7 Prevent using invalid bounce email address
[MAILPOET-2933]
2021-01-11 11:37:33 +01:00
Rostislav Wolny
6c63a562d1 Validate bounce email on import from MP2
[MAILPOET-2933]
2021-01-11 11:37:33 +01:00
Jan Lysý
83eecc9dc5 Fix getting subscribers without a list
[MAILPOET-3285]
2021-01-11 11:23:52 +01:00
Jan Lysý
e66ad88146 Set newsletter Entity when stdClass instance given
[MAILPOET-3356]
2021-01-11 11:15:33 +01:00
Pavel Dohnal
9bd50f5be4 Fix rendering 404 page
[MAILPOET-3311]
2021-01-11 10:11:31 +01:00
Pavel Dohnal
5db5a7edbc Refactor code duplication
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
de6e0e5adb Move groups definitions
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
761e57bdd2 Remove old code
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
6f0171373c Add email subjects to the response
[MAILPOET-3168]£
2021-01-08 10:37:50 +01:00
Pavel Dohnal
3e859ba8cf Add subscribers URL into the response
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
d93b168116 Refactor segments listings to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Jan Lysý
8f41628d29 Add scheduled emails subjects into segments API response
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
Jan Lysý
1ee58aad16 Fix empty trash when is trashed only WP Users list
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
Jan Lysý
5c20af3384 Move and restore subscribers from WP Users list
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
wxa
f571506129 Use woocommerce_form_field for WC checkout optin [MAILPOET-2925] 2021-01-04 14:22:42 +01:00
Pavel Dohnal
fbaabd8a6e Update code
[MAILPOET-1899]
2021-01-04 13:51:49 +01:00
Rostislav Wolny
b1feed43f6 Fix subscriber listing with dynamic segment filter
[MAILPOET-3319]
2021-01-04 13:14:55 +01:00
Rostislav Wolny
35a25e119f Remove unnecessary type checks
These were added during initial testing of php8 compatibility using PHPStan and were false positive due PHPStan issues.
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
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
Rostislav Wolny
441cb86a76 Refactor subscription segments selection from old model to api
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
af574f7e1b Refactor getting segments from form body to form entity
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
36a7cc0b25 Fix searching for segments to work with nested segments block
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
74e0fc6b52 Add getBlocksByType to Form entity
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
b3db3dbcb3 Add PHP constants for form block types
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
wxa
518c627927 Fix button link in deprecated shortcodes notice [MAILPOET-3345] 2021-01-04 10:32:40 +01:00
Rostislav Wolny
05812de89c Remove image block ids and links in form templates
[MAILPOET-3308]
2021-01-04 10:10:21 +01:00
wxa
0931d0b770 Keep custom unsubscribe confirmation page setting [MAILPOET-3242] 2021-01-04 10:00:01 +01:00
Jan Lysý
b67c216e31 Fix update segment when the name is the same
[MAILPOET-3343]
2020-12-21 10:03:08 +01:00
Jan Lysý
79abec8f13 Move method for create or update Segment to repository
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Jan Lysý
37cef4fb34 Remove usage of Idiorm from Segments test
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Jan Lysý
a75575baf9 Use SegmentEntity in endpoint Segment::save()
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Rostislav Wolny
16a0d54a31 Remove unsecure string from error message
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
dd3538b78d Add basic tests for PDOConnection and PDOStatement
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
d13f63b3e2 Fix other minor type issues in libs
[MAILPOET-3926]
2020-12-07 11:36:01 +01:00