Commit Graph

5540 Commits

Author SHA1 Message Date
Pavel Dohnal
7f599dbf8a Pass data to template
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
c3372dfee8 Load logs
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
174583cc84 Create repository for logs
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
de47ec9c7f Add an empty logs page
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
deb4d7833d Fix text align
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
Jan Lysý
13a2dce867 Allow styles on WP.com styles in ConflictResolver
[MAILPOET-3456]
2021-03-15 09:05:21 +01:00
Jan Lysý
4c999068da Allow Jetpack styles in ConflictResolver
[MAILPOET-3456]
2021-03-15 09:05:21 +01:00
Jan Lysý
cb0d3c70ad Use Doctrine for update success message in Settings
[MAILPOET-3034]
2021-03-11 11:46:16 +01:00
Jan Lysý
90295b3c3a Use Doctrine for update ScheduledTask in Settings
[MAILPOET-3034]
2021-03-11 11:46:16 +01:00
wxa
3fd379a72d Hide recaptcha in manage subscription form
[MAILPOET-3459]
2021-03-11 09:03:02 +01:00
wxa
67824f9eb1 Set task status to invalid instead of deleting
[MAILPOET-3359]
2021-03-10 18:24:21 +01:00
wxa
a0ad4ffb20 Log errors when saving sending task
[MAILPOET-3379]
2021-03-10 18:24:21 +01:00
wxa
3f7b809bd4 Delete tasks without queues when fetching sending tasks
[MAILPOET-3379]
2021-03-10 18:24:21 +01:00
Pavel Dohnal
91b468fabf Make dates in newsletter listings and help consistent
[MAILPOET-3441]
2021-03-10 15:49:03 +01:00
Rostislav Wolny
aff4c9d5b7 Fix dynamic segments filtering in subscriber export
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
1b74c3e195 Improve email action filter api data validation
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
6bc557ecb0 Refactor dynamic segments bulk actions endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
2db223daf7 Refactor dynamic segments delete endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
e1eea57d32 Refactor dynamic segments trash and restore
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
de9b3689bd Use correct exception in dynamic segment filter handler
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
51f8b30355 Remove unused old dynamic segments services
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
64b078c7be Add dynamic segments filter data mapper
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
ccd9041b79 Fix typo in segment save controller name
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
bd63ae508f Refactor dynamic segments get endpoint to doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Pavel Dohnal
8608bc7875 Use newsletter sent at in dates shortcode
[MAILPOET-3375]
2021-03-10 14:38:05 +01:00
wxa
e71e063ef0 Use same query logic for counting and exporting subs w/o lists
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
wxa
10bf0d006d Unify subscribers without segment queries for listing & export counting
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
wxa
19dd9180bd Rename 'not in a list' option
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
Rostislav Wolny
6f42222abc Fix subscriber consent data in export
[MAILPOET-3472]
2021-03-09 13:13:55 +01:00
Jan Lysý
be29262319 Add support for import subscription consent evidence
[MAILPOET-3389]
2021-03-08 11:39:44 +01:00
Jan Lysý
fb68f1a7d8 Fix count returned from shortcode mailpoet_subscribers_count
[MAILPOET-3424]
2021-03-08 10:24:59 +01:00
Jan Lysý
abdcbb245a Add missing fclose method for exported csv
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
8cbf06e775 Mark method Subscriber::filterWithCustomFieldsForExport as deprecated
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
a3224e9286 Remove old unused class for read subscribers
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
9c961757e7 Add a comment for a property segments in Export
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
302f9f2ca9 Set dynamic segment name via Doctrine parameter
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
8450beaf10 Add tests for get subscribers in ImportExportRepository
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
f2655c40aa Use doctrine for exporting subscribers
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
b2e0bac2d8 Add function for export subscribers to repository
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Danny Cooper
cfbe662e19 Update CustomFonts.php
WordPress automatically appends -css to the handle, so at the moment it's being output like this: 

`<link rel='stylesheet' id='mailpoet_custom_fonts_css-css'`
2021-03-03 15:29:56 +01:00
Rodrigo Primo
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
Pavel Dohnal
5b56903eee Add date creation to the default fields
[MAILPOET-3393]
2021-03-02 16:39:22 +01:00
Pavel Dohnal
1e78769618 Use created_at as subscription date
[MAILPOET-3393]
2021-03-02 16:39:22 +01:00
Pavel Dohnal
f6f9983d9a Add the new fields for the export
[MAILPOET-3393]
2021-03-02 16:39:22 +01:00
Rodrigo Primo
844ea3f6d8 Truncate first and last names before adding to wp_mailpoet_subscribers
MailPoet syncs users from wp_users to wp_mailpoet_subscribers. The
problem is that WP stores first and last names in a longtext field and
MP uses a varchar(255) field. This was causing a fatal error when
synchronizing names over 255 characters. This commit fixes this problem
by using SUBSTRING() to make sure that the 255 characters limit is
enforced when adding values to the columns first_name and last_name of
the wp_mailpoet_subscribers table. This should get rid of the fatal
error and it shouldn't be a problem to most users as it is unlikely that
a real user has a first or last name that is longer than 255 characters.

[MAILPOET-3246]
2021-03-02 16:09:47 +01:00
Jan Lysý
cbea75927a Add ignoring improper subscribers from MailChimp
[MAILPOET-3404]
2021-03-02 14:29:27 +01:00
Jan Lysý
d940c9365e Refactor Mailchimp import to API v3
[MAILPOET-3404]
2021-03-02 14:29:27 +01:00
Jan Lysý
878e3eb28f Simplify newsletter body data repair
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00