Commit Graph

77 Commits

Author SHA1 Message Date
fcf5fe1d5d Move code snipper to its own directory
Because our main composer has php engine specified as 5.6
we cannot use tools and libraries dependent on php 7

[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
46a0b7501b Update phpstan to level 5
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00
c5b5d8f45d Downgrade PHPStan level to 4
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
f3f769316a Upgrade PHPStan level to 5
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
a935b091d3 Add space between elseif/else if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
100db25ed9 Add space between while and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
9e9561e576 Add space between catch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
0dfc967153 Clarify unknown MailChimp error message 2019-01-24 15:15:42 +02:00
44bc27df90 Define default variable values in cases when they can be undefined 2019-01-23 21:29:46 +02:00
9f13f68e39 Fix "Access to undefined property" rule violations 2019-01-23 11:33:47 +02:00
a9f3eeeb0d User polyfill for array_column
[MAILPOET-1618]
2018-11-27 11:13:00 +01:00
60a5fe2732 Remove unused parameters & variabeles, fix calls with wrong number of args 2018-11-15 11:41:04 +01:00
ae0e03d2f3 Update code for PHP 5.5
[MAILPOET-1496]
2018-08-23 12:10:21 +02:00
f5d59eb00e Add source to imported subscribers
[MAILPOET-1377]
2018-05-14 13:55:47 +01:00
46493b991c Checking invalid emails on the input [MAILPOET-1288] 2018-03-06 19:54:44 +01:00
3d43970fdc Revert "Checking invalid emails on the input [MAILPOET-1288]" 2018-03-06 13:24:42 +00:00
5c10a66444 Subscribers import: Email validation unified with subscribers sync MAILPOET-1288 2018-03-06 09:15:48 +01:00
3c43c04586 Imports all new subscribers with subscribed status as default 2018-02-16 14:46:34 +00:00
c8f334d782 Prevents overwriting global subscription status 2018-02-16 14:46:34 +00:00
4abd034880 normalizing emails in lowercase 2018-01-23 13:46:10 +00:00
099db4e1c8 Removes unused variable
Fixes typo in error message
2017-06-05 11:59:13 -04:00
7f566fb672 Adds client-side check for invalid characters in email addresses
Adds server-side validation of email addresses using WP's is_email()
2017-06-04 18:48:11 -04:00
ac574acf8e Merge branch 'import_fixes' of mailpoet:mailpoet/mailpoet into import_fixes 2017-04-13 09:41:46 -04:00
aa15b9420a Replaces redundant search with one-time lookup 2017-04-13 09:28:54 -04:00
bee9bfcfcc Fix data being mixed up when splitting subscribers, remove excessive arguments [MAILPOET-828] 2017-04-13 11:08:20 +03:00
5b4fa4ea2b Fixes custom fields not being updated or causing integrity constraint
error: https://mailpoet.atlassian.net/browse/MAILPOET-828
2017-04-12 09:40:15 -04:00
d6f5a39829 Simplifies subscriber splitting code and adds comments 2017-04-11 22:12:50 -04:00
89ff93958f Removes subscriber object modification logic from the splitSubscribersData() method
Uses 2 separate objects with its own data for existing and new subscribers
Extends only new subscribers' object when it is missing required fields
2017-04-10 21:41:21 -04:00
b9f7a5673f Removes lefover test code 2017-04-10 11:32:38 -04:00
3a9c006cf9 Prevents overwriting existing subscribers' status (and other required fields) unless
the import object contains data for those fields
2017-04-09 22:04:56 -04:00
9a0bb52860 - Fixes subscribers not being added to list(s) upon import 2016-11-29 15:28:56 -05:00
c658778476 Merge pull request #723 from mailpoet/bounced_subscribers
Add 'Bounced' status to subscribers [MAILPOET-684]
2016-11-29 12:47:41 +02:00
36b935b9ae Add 'Bounced' status to subscribers [MAILPOET-684]
Fix SubscriberTest->testItHasGroupFilter() making only one of four assertions due to lack of data.
Fix a small issue with Import. Unexpected values for the status field were converted to 'unconfirmed' rather than 'subscribed' due to non-strict comparison in in_array(). This hindered 'bounced' status import as well.
2016-11-28 19:37:47 +03:00
71fbc1a7b0 - Simplifies code that prepares subscriber custom field data for
creation/update
- Updates tests
2016-11-27 20:53:20 -05:00
0c8cc27ea2 - Updates MailChimp API key regex 2016-11-22 12:44:58 -05:00
7c61fa2c81 - Fixes an issue where a subscriber with the same email but different case
variant is not considered unique
- Fixes an issue where an object of existing subscribers would not have
  the same number of data in each child array due to null values being
  removed
- Updates unit tests
2016-11-21 21:53:43 -05:00
2a961cca01 Eliminate an extra level of indentation 2016-11-02 13:10:23 +02:00
98f95f72ad - Adds validation for import data, including column names (fixes #633)
- Prevents nonexistent custom fields from being associated with subscribers
2016-10-17 20:22:25 -04:00
9197e39fb4 - Restricts MailChimp API key to specific format
- Updates unit test
2016-10-16 11:57:56 -04:00
7fbf84db1f converted text domain to string instead of constant 2016-09-30 09:58:26 +02:00
42202f676a updated Env::plugin_name to constant for text domain 2016-09-27 14:54:23 +02:00
ba6198f956 added textdomain to __() calls 2016-09-27 14:53:44 +02:00
289811a595 Updated Import & MailChimp tests 2016-08-17 13:32:29 +02:00
9582e58dda converted import 2016-08-17 12:16:58 +02:00
c5a02c6136 - Allows setting empty value for date custom fields 2016-08-14 13:00:28 -04:00
7f091d7188 - Fixes rebase screwup 2016-08-12 10:38:15 -04:00