Commit Graph

13768 Commits

Author SHA1 Message Date
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
Jan Lysý
2f6a223c4f Duplicate the name property as the text for Select2 search
[MAILPOET-3458]
2021-03-10 12:22:42 +01:00
Pavel Dohnal
9529b18cd4 Refactor types to typescript
[MAILPOET-3455]
2021-03-10 09:47:52 +01:00
Pavel Dohnal
8e70e0758f Fix loading state on email creating
[MAILPOET-3455]
2021-03-10 09:47:52 +01:00
Rostislav Wolny
ba0ecc992b Release 3.60.3 2021-03-09 14:10:53 +01:00
Rostislav Wolny
6f42222abc Fix subscriber consent data in export
[MAILPOET-3472]
2021-03-09 13:13:55 +01:00
Jan Lysý
970f853507 Use sentAt instead of updatedAt in newsletters listing
[MAILPOET-3346]
2021-03-08 13:10:20 +01:00
Pavel Dohnal
9ef404eb4d Display a better message on MSS pitch
[MAILPOET-3436]
2021-03-08 12:53:34 +01:00
Pavel Dohnal
d67cb260dd Refactor file to typescript
[MAILPOET-3436]
2021-03-08 12:53:34 +01:00
Pavel Dohnal
77d363dcd6 Use correct wording for automated emails
[MAILPOET-3436]
2021-03-08 12:53:34 +01:00
Pavel Dohnal
68465089b0 Add a code comment to a buggy component 2021-03-08 12:53:34 +01:00
Pavel Dohnal
4fe9851a2e Refactor heading steps to typescript
[MAILPOET-3436]
2021-03-08 12:53:34 +01:00
Jan Lysý
62bf43ad3f Add consent evidence columns to import tests
[MAILPOET-3389]
2021-03-08 11:39:44 +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ý
4a2af719db Remove use old model from ExportTest
[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
wxa
3b12ea0989 Fix miscellaneous deprecated methods [MAILPOET-3386] 2021-03-03 14:59:54 +01:00
wxa
be320ad995 Update parsleyjs [MAILPOET-3386]
Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
2021-03-03 14:59:54 +01:00
wxa
13da0d77fe Update select2 [MAILPOET-3386]
The latest version has deprecated jQuery features removed.
It also has some breaking changes in HTML layout, so I had to fix styles to keep its design look.
2021-03-03 14:59:54 +01:00
wxa
c54f078cd1 Replace deprecated event shorthands [MAILPOET-3386] 2021-03-03 14:59:54 +01:00
wxa
9dcceb955d Fix pre-commit hook for newsletter editor tests [MAILPOET-3386] 2021-03-03 14:59:54 +01:00
wxa
7423a618e2 Update spectrum-colorpicker [MAILPOET-3386]
The deprecated jQuery methods are fixed in GitHub, but not in npm,
so I've decided to apply a patch from the repo until it gets released.
2021-03-03 14:59:54 +01:00
Rodrigo Primo
3f9beaf344 Fix link and label of the button to buy the agency license of MailPoet Premium
[MAILPOET-3384]
2021-03-03 09:39:30 +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
65f52ce571 Fix event targets after typescript migration
[MAILPOET-3393]
2021-03-02 16:39:22 +01:00
Pavel Dohnal
5d3b8acf65 Pre-select the new fields
[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
Pavel Dohnal
5073c1056f Convert export javascript to typescript
[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
wxa
29dc19e6d5 Fix mssing period
[MAILPOET-3404]
2021-03-02 14:29:27 +01:00
Jan Lysý
6f34c7e410 Add description to MailChimp import method
[MAILPOET-3404]
2021-03-02 14:29:27 +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
Jan Lysý
78717509c8 Add tests for newsletter data fixers
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
9441d32bdd Use service for fix newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
e443e3918d Add service for fixing newsletter API data
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Pavel Dohnal
a8b4f0e46d Release 3.60.2 2021-03-02 13:38:13 +01:00