Commit Graph

2995 Commits

Author SHA1 Message Date
Vlad
5fa7930896 Redefines how endpoint namespaces are set
Updates error response to terminate connection only on AJAX requests
Optimizes and cleans up code based on code revew comments
2017-04-20 22:34:18 -04:00
Vlad
6a65ff5e5d Removes default version
Updates all AJAX requests to include api version
Requires namespaces to have version
Clean up code
2017-04-19 23:34:40 -04:00
Vlad
b549f83422 Updates form subscription class to use the main API class instead of calling directly API endpoint
Modifies forms to pass api_version
Modifies forms to pass store form-specific values (e.g., form_id, email) inside a separate data array
2017-04-19 15:38:16 -04:00
Vlad
a9c80c031f Adds version support to public API 2017-04-19 15:38:16 -04:00
Amine Ben hammou
8157780b68 removing uneeded code and moving the url generation to proper class 2017-04-18 21:12:41 +02:00
Vlad
1dd6c91529 Updates missing requirements language 2017-04-16 23:54:10 -04:00
Vlad
c4f0426775 Adds checker for XML and ZIP extensions 2017-04-16 21:10:15 -04:00
mrcasual
53f5a122bd Merge pull request #861 from mailpoet/post_filters
Fix post filters for custom post types in ALC [MAILPOET-838]
2017-04-16 19:52:01 -04:00
Amine Ben hammou
771a1bfc44 Adding List-Unsubscribe to header of newsletters 2017-04-15 21:21:28 +00:00
Vlad
ac574acf8e Merge branch 'import_fixes' of mailpoet:mailpoet/mailpoet into import_fixes 2017-04-13 09:41:46 -04:00
Vlad
aa15b9420a Replaces redundant search with one-time lookup 2017-04-13 09:28:54 -04:00
Alexey Stoletniy
bee9bfcfcc Fix data being mixed up when splitting subscribers, remove excessive arguments [MAILPOET-828] 2017-04-13 11:08:20 +03:00
Vlad
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
Vlad
d6f5a39829 Simplifies subscriber splitting code and adds comments 2017-04-11 22:12:50 -04:00
Vlad
9ef74e0951 Stops execution when there are no subscriber columns to update 2017-04-10 21:41:37 -04:00
Vlad
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
Tautvidas Sipavičius
8d870e85eb Switch to get_bloginfo() from bloginfo() to prevent output 2017-04-10 19:44:32 +03:00
Tautvidas Sipavičius
0cdb426712 Fix ALC filtering for custom taxonomies and post types 2017-04-10 19:23:19 +03:00
Vlad
b9f7a5673f Removes lefover test code 2017-04-10 11:32:38 -04:00
Vlad
7ffbf6c378 Updates code style and adds wp_user_id column to the list of columns
that should be ignore when updating existing subscribers
2017-04-09 22:05:02 -04:00
Vlad
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
mrcasual
ec23a73edb Merge pull request #859 from mailpoet/trailing_br_rendering_fix
Fix last <br/> removal cutting off text when rendering a text block [MAILPOET-856]
2017-04-06 21:57:07 -04:00
Alexey Stoletniy
37fcd5699b Fix last <br/> removal cutting off text when rendering a text block [MAILPOET-856] 2017-04-06 10:07:11 +03:00
Alexey Stoletniy
9d358f74dd Rename a 'method' field in a form widget so it doesn't break the WP interactive customizer [MAILPOET-851] 2017-04-05 18:35:13 +03:00
Vlad
0ef430567b Fixes sending limit not being enforced when email frequency limit is
changed to a lesser value OR when it is changed while sending is in
progress
2017-04-04 09:43:27 -04:00
mrcasual
99eb72428f Fixes reference to self in anonymous function 2017-03-31 12:51:58 -04:00
Alexey Stoletniy
6811d8e38d Improve performance of a subscriber listing on MySQL 5.5 and lower [MAILPOET-867] 2017-03-30 13:12:53 +03:00
Vlad
87b270482b Fixes rules with colons (e.g, background-image: url(http://....);) from
being incorrectly parsed
2017-03-26 18:45:07 -04:00
Vlad
d22ba55858 Outputs transparent gif instead of red color 2017-03-26 18:45:07 -04:00
Alexey Stoletniy
ff36833270 Add a hook for reinstalling Premium [PREMIUM-2] 2017-03-23 15:27:15 +03:00
Alexey Stoletniy
32097b4512 Test that Premium hooks are executed [PREMIUM-2] 2017-03-21 21:36:36 +03:00
Alexey Stoletniy
d686f75222 Swap JS actions with filters for robustness & testability, get rid of URL key hashing [PREMIUM-2] 2017-03-21 13:34:47 +03:00
Alexey Stoletniy
ee12f4d304 Move a hook to be always executed after rebasing [PREMIUM-2] 2017-03-20 16:23:16 +03:00
Alexey Stoletniy
16c1607850 Refactor links processing: isolate core logic for easier substitution [PREMIUM-2] 2017-03-20 12:09:58 +03:00
Alexey Stoletniy
e2864e2243 Add hooks for GA tracking feature [PREMIUM-2] 2017-03-20 12:09:58 +03:00
Alexey Stoletniy
16dc81150d Execute mailpoet_initialized hook earlier after setup [PREMIUM-2]
This is done because Router can seize the request and prevent subsequent actions like Premium hooking from being run, so hooks didn't work in cron daemon.
2017-03-20 12:08:40 +03:00
Alexey Stoletniy
1010c6f4f0 Remove a space [MAILPOET-859] 2017-03-15 13:15:34 +03:00
Alexey Stoletniy
8dd698ec75 Fix Welcome email sending [MAILPOET-859] 2017-03-15 12:12:47 +03:00
stoletniy
0f7725e6af Merge pull request #842 from mailpoet/verify_subscription_status_during_sending
Prevents sending to unsubscribed subscribers [MAILPOET-824]
2017-03-14 10:49:43 +03:00
Tautvidas Sipavičius
b369cadde0 Merge pull request #841 from mailpoet/post_notification_reschedule
Reschedules sending queues when scheduling options change [MAILPOET-837]
2017-03-13 17:21:03 +02:00
Vlad
3cde437628 Adds enforcement of global subcriber subscription status and
subscribption to segments to which newsletter is sent
2017-03-09 20:38:34 -05:00
Vlad
d05d033727 Forces ampersand as query separator for mailers 2017-03-08 14:34:35 -05:00
Vlad
ccba1925b1 Prevents sending to unsubscribed subscribers 2017-03-07 18:55:49 -05:00
Vlad
b590586d4c Reschedules previously scheduled sending queues when post notification's
scheduling options change
2017-03-07 18:39:55 -05:00
Vlad
5d88938d94 Reduces sending batch size 2017-03-06 19:05:14 -05:00
Vlad
66d039ace3 Catches exception thrown by cron dependency and prevents a fatal error 2017-02-27 19:21:32 -05:00
stoletniy
7f0195378c Merge pull request #833 from mailpoet/stop_daemon_with_sending_is_paused
Stops cron daemon when sending is paused due to an error [MAILPOET-839]
2017-02-27 16:49:55 +03:00
stoletniy
6caa3a069b Merge pull request #832 from mailpoet/mailer_output_escape_fix
Fixes double escaping of HTML entities in mailer output [MAILPOET-836]
2017-02-27 10:52:10 +03:00
Alexey Stoletniy
b2a92feb50 Restore unnecessary $this replacements [MAILPOET-840] 2017-02-27 10:18:14 +03:00
Vlad
c11b9677d5 Fixes 'Using $this when not in object context' error on PHP 5.3 2017-02-26 22:08:34 -05:00