Commit Graph

79 Commits

Author SHA1 Message Date
Jan Lysý
acf76e2905 Remove changing WP users as unconfirmed
This commit should revert functionality from the ticket MAILPOET-2134

[MAILPOET-3515]
2021-06-22 16:23:05 +02:00
Jan Lysý
f406608763 Use hidden input for correct unsubscribe status on registration
[MAILPOET-3483]
2021-05-03 10:24:25 +02:00
Jan Lysý
631e2acda1 Change default WP subscriber status to unsubscribed
[MAILPOET-3483]
2021-05-03 10:24:25 +02:00
Pavel Dohnal
86fa574ce8 Fix exhausted memory during woocommerce sync 2021-04-12 11:42:00 +02: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
Rostislav Wolny
d684dc0543 Remove unnecessary new user caching from WP segment
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
48ba20602e Handle batch sync of new users for disabled WP users segment
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
65ca040a20 Always inject welcome emails scheduler
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
3dcb939432 Handle adding new WP users to disabled WP segment
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
f960f7f928 Add ability to distinguish new subscriber in WP user sync
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
645f888186 Refactor WP Users segment controller to injectable service
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Jan Lysý
d5abc80346 Disable restore trashed WP subscribers
[MAILPOET-3138]
2020-10-20 17:22:06 +02:00
Rostislav Wolny
4f50c94dcb Use new confirmation mailer send method with duplicate check
[MAILPOET-2876]
2020-09-09 13:09:06 +02:00
Lysy Jan
ba4fd9eb1b Fix subscriber status resetting on WP user creation
Fixes:#2960
[MAILPOET-3016]
2020-08-04 13:41:48 +02:00
Jan Jakeš
81531116e7 Fix signup confirmation email for WP users trigger
[MAILPOET-2700]
2020-02-24 18:59:05 +00:00
Pavel Dohnal
79e722094c Prevent sending confirmation email on profile update
[MAILPOET-2567]
2020-01-27 09:26:15 +00:00
Pavel Dohnal
4c5155132a Send a confirmation email when a user is added to a website
[MAILPOET-2567]
2020-01-27 09:26:15 +00:00
Jan Jakeš
685b4885c0 Exclude WordPress and WooCommerce variables from camel case conversion
[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
Jan Jakeš
60889c53f4 Add Idiorm to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
Jan Jakeš
d970dda637 Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
Jan Jakeš
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
Pavel Dohnal
c90a2e41a1 Use separate scheduler for welcome emails
[MAILPOET-2321]
2019-08-29 13:55:49 -04:00
Ján Mikláš
d760786bf1 Respect Sign-up Confirmation settings, when synchronizing users
[MAILPOET-2201]
2019-07-22 07:31:56 -04:00
Pavel Dohnal
ba5b1e9ee2 Mark spammy subscribers as unconfirmed
[MAILPOET-2150]
2019-07-09 06:24:58 -04:00
Amine Ben hammou
e6608a5cd7 Force confirmation for bulk synced WordPress users 2019-06-26 14:41:02 -04:00
Pavel Dohnal
f4f6827849 Keep new wordpress users as unconfirmed
[MAILPOET-2125]
2019-06-26 13:36:41 -04:00
Pavel Dohnal
3c63b3e84d Mark previously added spammy WP users as unconfirmed
[MAILPOET-2134]
2019-06-25 14:54:32 -04:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
M. Shull
59418efa99 Merge pull request #1746 from mailpoet/phpstan-cleanup
Raise PHPStan strictness level to 1
2019-01-28 10:47:24 -05:00
Tautvidas Sipavičius
1af4666744 Declare missing properties and methods for PHPStan 2019-01-23 21:30:24 +02:00
wxa
a4ff9822ad Add WooCommerce customers list [MAILPOET-1721] 2019-01-17 21:42:57 +03:00
wxa
467bef1d61 Do not require pluggable.php [MAILPOET-1650] 2018-11-22 17:01:33 +03:00
Pavel Dohnal
3940381e30 Add source to wp users
[MAILPOET-1377]
2018-05-14 13:55:47 +01:00
Rostislav Wolny
755179e0d1 segments/migrate: Avoiding collation error in subscribers sync MAILPOET-1288 2018-03-06 21:17:16 +01:00
Rostislav Wolny
46493b991c Checking invalid emails on the input [MAILPOET-1288] 2018-03-06 19:54:44 +01:00
pavel-mailpoet
3d43970fdc Revert "Checking invalid emails on the input [MAILPOET-1288]" 2018-03-06 13:24:42 +00:00
Rostislav Wolny
afed408297 Synchronize segments removes updated/inserted subscribers with invalid emails MAILPOET-1288 2018-03-06 09:15:37 +01:00
Vlad
5461c975d4 Fixes "column cannot be null" error during WP sync 2017-11-06 22:29:59 -05:00
stoletniy
a4ac74c84a Remove more ambiguity in WP sync queries [MAILPOET-1177] 2017-10-23 13:58:23 +03:00
Vlad
70898790f5 Cleans up code & fixes possible MySQL's "column is ambiguous" error 2017-10-19 21:14:45 -04:00
Vlad
bfdb535f5b Fixes method name typo 2017-10-19 21:00:15 -04:00
stoletniy
b5feed0f46 Remove WP subscribers with empty emails when syncing [MAILPOET-1158] 2017-10-12 10:31:11 +01:00
stoletniy
11f9579101 Don't synchronize WP users without emails [MAILPOET-1158] 2017-10-12 10:31:11 +01:00
stoletniy
e4f76ee9eb Get rid of WP user IDs updating query in favor of an insert-update due to collation problems [MAILPOET-1132] 2017-10-03 20:52:35 +03:00