Compare commits

...

484 Commits

Author SHA1 Message Date
df0ad2df37 Update release version to 3.0.0-beta.23 2017-03-14 13:18:21 +02:00
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
eda346c582 Fix a unit test for PHP 7.1 [MAILPOET-824] 2017-03-14 10:31:44 +03:00
94060a6443 Merge pull request #846 from mailpoet/transifex_import
Add importing of translations from Transifex [MAILPOET-849]
2017-03-13 18:45:10 +02:00
1cd7c5e876 Update README, force translations downloading, set shell script permissions [MAILPOET-849] 2017-03-13 19:34:17 +03:00
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
5321a136e7 Add importing of translations from Transifex [MAILPOET-849] 2017-03-13 17:43:56 +03:00
d4c04f29bf Merge pull request #845 from mailpoet/readme_update
Update translations section of readme.txt [MAILPOET-854]
2017-03-13 14:56:47 +02:00
20798d8957 Update translations section of readme.txt [MAILPOET-854] 2017-03-13 12:55:52 +03:00
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
8db7af48cd Merge pull request #843 from mailpoet/http_build_query_fix
Forces ampersand as query separator for mailers [MAILPOET-850]
2017-03-09 13:40:08 +03:00
d05d033727 Forces ampersand as query separator for mailers 2017-03-08 14:34:35 -05:00
ccba1925b1 Prevents sending to unsubscribed subscribers 2017-03-07 18:55:49 -05:00
b590586d4c Reschedules previously scheduled sending queues when post notification's
scheduling options change
2017-03-07 18:39:55 -05:00
44c742402c Bump up release verison to 3.0.0-beta.22 2017-03-07 17:49:11 +03:00
3a9db95c37 Merge pull request #840 from mailpoet/sending_batch_size_update
Reduces sending batch size [MAILPOET-847]
2017-03-07 16:53:52 +03:00
5d88938d94 Reduces sending batch size 2017-03-06 19:05:14 -05:00
67e0f1776d Merge pull request #839 from mailpoet/mailer_endpoint_update
Prevents setting current user's name to recipient of test email [MAILPOET-846]
2017-03-06 10:38:34 +03:00
5b68febb05 Removes first/last name that's based on current user from being sent to
test e-mail
2017-03-02 17:28:44 -05:00
9bf65ca798 Merge pull request #838 from mailpoet/editor_notices
Fix notices on newsletter editor page to not be absorbed into contents [MAILPOET-811]
2017-03-01 20:38:58 +03:00
d95aa40502 Fix notices on newsletter editor page to not be absorbed into contents 2017-03-01 17:26:17 +02:00
a59bf76fb4 Update version information for 3.0.0-beta.21 release 2017-02-28 14:11:03 +02:00
51fdc7f1df Merge pull request #837 from mailpoet/catch_cron_exceptions
Catches exception thrown by cron dependency and prevents a fatal error [MAILPOET-844]
2017-02-28 13:20:58 +02:00
aa51b751d0 Merge pull request #835 from mailpoet/translations
Fix translations [MAILPOET-841]
2017-02-28 14:08:44 +03:00
aff522c5cd Merge pull request #836 from mailpoet/translation_string_update
Removes unnecessary period [MAILPOET-842]
2017-02-28 12:40:06 +02:00
66d039ace3 Catches exception thrown by cron dependency and prevents a fatal error 2017-02-27 19:21:32 -05:00
ed5e6cdd8c Removes unnecessary period 2017-02-27 12:58:54 -05:00
47f5e1e7b4 Translate color picker actions in newsletter editor 2017-02-27 19:32:08 +02:00
626d6c0fa9 Fix "newsletter was updated successfully" translation 2017-02-27 19:15:29 +02:00
2b45d64695 Make numberOfItems translation singular/plural aware 2017-02-27 18:33:09 +02:00
c27446666e Translate untranslated strings 2017-02-27 18:33:09 +02:00
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
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
baaf73b584 Merge pull request #834 from mailpoet/mailpoet_mailer_php53_fix
Fixes 'Using $this when not in object context' MailPoet mailer error on PHP 5.3 [MAILPOET-840]
2017-02-27 10:19:21 +03:00
b2a92feb50 Restore unnecessary $this replacements [MAILPOET-840] 2017-02-27 10:18:14 +03:00
c11b9677d5 Fixes 'Using $this when not in object context' error on PHP 5.3 2017-02-26 22:08:34 -05:00
0e5a26ce1f Stops cron daemon when sending is paused due to an error 2017-02-26 11:26:59 -05:00
40ec5569d0 Removes "unprocessed subscriber" message since MailPoet's mailer method
processes subscribers in batches of 50 and it makes no sense to display
them all
2017-02-25 10:32:14 -05:00
d14ecc982b Does not display unprocessed subscriber when sending a test message 2017-02-24 11:18:27 -05:00
9c27384ba3 Passes responsibility for mailer error message HTML entity escaping from
server to the client side
2017-02-24 11:06:20 -05:00
2268f0ffa6 Merge pull request #831 from mailpoet/php53_bulk_trash_and_restore_fix
Fix bulk trashing/restoring not working for newsletters/forms on PHP 5.3 [MAILPOET-835]
2017-02-24 13:22:30 +01:00
bfc04bfa87 Fix bulk trashing/restoring not working for newsletters/forms on PHP 5.3 [MAILPOET-835] 2017-02-24 15:10:38 +03:00
37ac31cdac Bumps up release version to 3.0.0-beta.20 and updates changelog 2017-02-23 19:04:55 -05:00
15096d483f Merge pull request #830 from mailpoet/newsletter_save_fix
Fixes newsletter options being wiped on Step 3 of creation process [MAILPOET-833]
2017-02-23 23:51:59 +03:00
16724affad Remove an excess count() [MAILPOET-833] 2017-02-23 23:42:28 +03:00
384d59abe0 Update Newsletters.php
Removes request interruption when options are not found
2017-02-23 15:25:34 -05:00
027414b7a2 Updates method data verification condition 2017-02-23 14:39:56 -05:00
a1cd56c419 Updates newsletter option creation logic and fixes a bug that results in
them being wiped clean
2017-02-23 14:30:53 -05:00
6ee1c23f9a Merge pull request #829 from mailpoet/post_title_shortcode_fix
Fix post_title shortcode breaking sending if the post is trashed in the process [MAILPOET-831]
2017-02-23 14:41:24 +01:00
44a223eba1 Fix post_title shortcode breaking sending if the post is trashed in the process [MAILPOET-831] 2017-02-23 16:33:18 +03:00
7c66754541 Merge pull request #828 from mailpoet/premium_hooks
Premium hooks / Additional endpoints in Free API [PREMIUM-4]
2017-02-23 15:26:30 +02:00
bb80fc0860 Add unit tests for API endpoints injection [PREMIUM-4] 2017-02-22 18:02:58 +03:00
6c7cc5de0d Implement support for additional endpoints in Free API [PREMIUM-4] 2017-02-22 11:19:35 +03:00
063cc9edc3 added do_action() helper to twig + settings/basics hook 2017-02-22 10:12:08 +03:00
76c283502e Bumps up release version to 3.0.0-beta.19 and updates changelog 2017-02-21 11:55:53 -05:00
554add0882 Merge pull request #823 from mailpoet/smtp_mailer_logger_implementation
Provides detailed SMTP error message and shows last unprocessed subscriber [MAILPOET-823]
2017-02-21 18:09:23 +03:00
689c340081 Converts special characters to HTML entities for all error messages 2017-02-21 09:55:18 -05:00
01e4ed7efc Merge pull request #827 from mailpoet/template_screenshots
Newsletter template fixes [MAILPOET-817]
2017-02-21 15:50:06 +01:00
59f408846a Make all default newsletter templates read-only 2017-02-21 16:32:03 +02:00
64606e69cf Fix Populator to update existing newsletter templates and remove duplicates 2017-02-21 15:46:28 +02:00
e8e0c1e0b3 Automatically update SVN /assets folder upon publishing a release 2017-02-21 15:46:28 +02:00
953c124ef0 Move newsletter template assets to be shared through WP plugin repo 2017-02-21 15:46:28 +02:00
2e1be55bf9 Merge pull request #826 from mailpoet/newsletter_restore_fix
Set newsletter status to draft when restoring newsletters trashed during sending [MAILPOET-816]
2017-02-21 13:54:17 +01:00
33125f2ce7 Merge pull request #820 from mailpoet/translations
Fix translations based on translators' feedback [MAILPOET-819]
2017-02-21 13:20:24 +01:00
e99d2b380c Fix a space [MAILPOET-816] 2017-02-21 13:34:33 +03:00
bcf89f0dfe Set newsletter status as draft when restoring newsletters trashed during sending [MAILPOET-816] 2017-02-21 13:13:59 +03:00
3d64a42126 Merge pull request #819 from mailpoet/bulk_delete_custom_fields
Deletes custom fields associations when bulk deleting subscribers [MAILPOET-820]
2017-02-21 11:32:11 +02:00
97eb772ab8 Enables temporarily disabled unit test 2017-02-20 13:17:06 -05:00
bc40bbb44b Convert special characters to HTML entities when displaying email
addresses
2017-02-20 13:03:08 -05:00
ed117e53d9 Adds unit test for bulk delete action 2017-02-20 12:58:26 -05:00
b74f40c7a8 Makes code more readable/cleaner 2017-02-20 09:30:14 -05:00
bf4023c0ad Restores accidentally removed tests 2017-02-20 09:07:18 -05:00
c98cdb3e57 Merge pull request #811 from mailpoet/popups_focus
Focus on popups by default [MAILPOET-724]
2017-02-20 15:36:07 +02:00
a01b094f9f Merge pull request #824 from mailpoet/import_regex_update
Updates email regex from loose HTML5 standard to stricter RFC 5322 [MAILPOET-825]
2017-02-20 16:30:01 +03:00
e75bb7ee59 Capitalize words of a title in welcome template 2017-02-20 15:22:28 +02:00
563c62855a Undo title capitalization changes, as not all languages use it 2017-02-20 14:58:53 +02:00
8a15424a62 Remove "Read more" link to obsolete KB article 2017-02-20 14:58:53 +02:00
8eb04534bc Fixed translations based on feedback from translators on Transifex 2017-02-20 14:58:53 +02:00
b3abf46604 Update outdated newsletter template translation strings 2017-02-20 14:58:53 +02:00
6f19a1593e Fix translations from GDocs based on FxB's feedback [MAILPOET-819] 2017-02-20 14:58:53 +02:00
883711698e Updates email regex from loose HTML5 standard to stricter RFC 5322
that's required by some mail transport agents
2017-02-18 10:33:45 -05:00
bdcfd77d42 Returns last unprocessed subscriber in error message 2017-02-16 23:25:05 -05:00
2cd503e0e0 Merge pull request #822 from mailpoet/php71_button_rendering
Fix button block rendering producing notices on PHP 7.1 [MAILPOET-822]
2017-02-17 05:05:38 +01:00
c9519f0b3d Adds logger to record SMTP communication
Returns a more complete error message and last unprocessed subscriber
2017-02-16 22:45:09 -05:00
0daa3057e7 Focus on all modal types by default [MAILPOET-724] 2017-02-16 21:58:41 +03:00
0ac5129e0e Merge pull request #818 from mailpoet/destroyed_newsletter
Fix newsletter corruption when going back to editor from last newsletter creation step [MAILPOET-787]
2017-02-16 18:39:01 +03:00
a3aa347fdf Fix button block rendering producing notices on PHP 7.1 [MAILPOET-822] 2017-02-16 17:53:36 +03:00
a40d1122a5 Change corrupted newsletter notice to a static (dismissable) one 2017-02-16 11:21:01 +02:00
9955b8fda1 Merge pull request #821 from mailpoet/php53_fix
Replaces references to self::$variable with Class:$variable for PHP 5.3 hosts [MAILPOET-821]
2017-02-16 11:53:34 +03:00
c994438fa8 Replace more self:: references in closures for PHP 5.3 [MAILPOET-821] 2017-02-16 11:22:26 +03:00
3085ae575a Replaces references to self::$variable with Class:$variable for PHP 5.3
hosts
2017-02-15 18:27:52 -05:00
793b8ce29e Deletes custom fields associations when bulk deleting subscribers 2017-02-15 15:40:26 -05:00
5d447cdec3 Merge pull request #817 from mailpoet/large_list_sending_fix
Fixes DB query that returns large result set when there are thousands of subscribers [MAILPOET-815]
2017-02-15 19:01:26 +02:00
e7698b0131 Optimizes DB query and result processing code 2017-02-15 10:02:13 -05:00
f86121b656 Update the error message to a clearer one 2017-02-15 15:05:30 +02:00
45c223c14b Fix newsletter corruption when going back to editor from last newsletter step 2017-02-15 15:04:07 +02:00
66990d62c2 Restore focus on previously focused element after closing a modal box [MAILPOET-724] 2017-02-15 10:09:14 +03:00
4439111a44 Focus on popups by default [MAILPOET-724] 2017-02-15 10:09:14 +03:00
440b7e4e6c Fixes DB query that returns large result set when there are thousands of
subscribers
2017-02-14 21:07:40 -05:00
b90d7894ca Bump up release version to 3.0.0-beta.18 2017-02-14 17:49:48 +03:00
a0b37eb08c Merge pull request #810 from mailpoet/list_stats_fix
Fix subscriber stats for lists ignoring subscription status and including trashed items [MAILPOET-807]
2017-02-14 14:27:59 +01:00
44b83436bc Merge pull request #809 from mailpoet/view_plans_button_utm
Add GA UTM params to 'View Email Plans' link in Settings [MAILPOET-806]
2017-02-14 13:54:55 +01:00
0d75ee0e12 Merge pull request #816 from mailpoet/utf8_renderer_fix
Fixed UTF-8 encoding in renderer on PHP 5.3 [MAILPOET-812]
2017-02-14 12:39:53 +03:00
50d77f2aff Merge pull request #814 from mailpoet/robo_upgrade
Update Robo from 0.7.2 to 1.0.5 [MAILPOET-813]
2017-02-14 11:22:56 +02:00
cb813171ce Remove html_entity_decode() constants not supported by PHP 5.3 [MAILPOET-812] 2017-02-14 12:22:35 +03:00
3f188e3690 Updates lint rules to ignore pQuery class (name not in camel case caps,
etc.)
2017-02-13 21:00:46 -05:00
e74938df90 Updates code to use the extended pQuery class 2017-02-13 21:00:45 -05:00
93f7739f46 Extends pQuery to use UTF-8 encoding on older versions of PHP 2017-02-13 21:00:32 -05:00
a918091977 Merge pull request #815 from mailpoet/sendgrid_fix
Fixes SendGrid's error response [MAILPOET-810]
2017-02-13 10:51:34 +03:00
b539eae7f9 Fix SendGrid error message assignment [MAILPOET-810] 2017-02-13 10:35:21 +03:00
228a671749 Converts SendGrid's error response message from array to string 2017-02-11 05:41:02 -05:00
70fe253db3 Update Robo from 0.7.2 to 1.0.5 2017-02-09 19:08:04 +03:00
bdb97261fd Merge pull request #813 from mailpoet/alc_categories_fix
Fix categories not showing for posts in newsletter editor [MAILPOET-808]
2017-02-09 06:23:01 -05:00
8507c77699 Fix categories not showing for posts in newsletter editor [MAILPOET-808] 2017-02-09 11:13:46 +03:00
771ff134a8 Merge pull request #812 from mailpoet/create_form_in_widget_fix
Fix 'Create a new form' link on widgets page having no feedback [MAILPOET-691]
2017-02-08 11:05:23 -05:00
9c1cbba163 Fix 'Create a new form' link on widgets page having no feedback [MAILPOET-691] 2017-02-08 13:30:49 +03:00
f51122b58f Fix subscriber stats for lists ignoring subscription status and including trashed items [MAILPOET-807] 2017-02-06 16:04:16 +03:00
e8fd992235 Add GA UTM params to 'View Email Plans' link in Settings [MAILPOET-806] 2017-02-06 12:56:39 +03:00
e126278e32 Bump up the release version to 3.0.0-beta.17 2017-02-02 17:47:21 +03:00
9d2651083d Merge pull request #808 from mailpoet/translation_plugin
Whitelist translation plugin [MAILPOET-805]
2017-02-02 15:48:02 +03:00
1e1ae4c3cf Whitelist translation handling plugin's admin assets on MP pages
[MAILPOET-805]
2017-02-02 14:10:57 +02:00
385f5ab535 Merge pull request #807 from mailpoet/sending_svc_subscriber_count
Add subscriber count reporting on Sending Service key validation [MAILPOET-804]
2017-02-02 13:19:39 +02:00
dc371d76ca Rework subscriber count reporting after a code review [MAILPOET-804]
Move updateSubscriberCount() out of checkKey()
Move wp_remote_post() to request()
Simplify a response check
2017-02-01 21:04:11 +03:00
be0c9b71d8 Add subscriber count reporting on Sending Service key validation [MAILPOET-804] 2017-02-01 15:58:49 +03:00
6e250d9317 Merge pull request #806 from mailpoet/update_sending_methods_strings
Update sending method descriptions for the new shop [MAILPOET-794]
2017-02-01 13:54:52 +02:00
afeaa00fc7 Merge branch 'master' into update_sending_methods_strings 2017-02-01 14:33:05 +03:00
6575d1579d Merge pull request #796 from mailpoet/sending_svc_api_consolidation
Consolidate Sending Service API calls in one class [MAILPOET-795]
2017-02-01 13:29:34 +02:00
282199d362 Merge pull request #784 from mailpoet/sending_svc_key_validation
Add sending service key validation [MAILPOET-743]
2017-02-01 13:29:08 +02:00
3e5c46e8f3 Cut the text to fit in a smaller box [MAILPOET-794] 2017-02-01 13:11:48 +03:00
71515f3ff0 Updated changelog to fix WP plugin repo parsing 2017-01-31 17:24:35 +02:00
934a8d5bf8 Update changelog 2017-01-31 16:44:14 +02:00
6be2464c86 Fix build script to include mailpoet_initializer.php in the build 2017-01-31 14:54:39 +02:00
ace8a52262 Update release information for 3.0.0-beta.16 2017-01-31 14:20:30 +02:00
7d37d279cd Merge pull request #805 from mailpoet/translations
Translations update
2017-01-30 18:18:22 -05:00
5525a959a8 Fix remaining unit tests after translation changes 2017-01-30 21:50:22 +02:00
a421dbd674 Fix tests 2017-01-30 21:35:49 +02:00
bedfc4f80c Add context to 'Select' translation strings 2017-01-30 21:35:49 +02:00
af2a6b2559 Fix parsing of starting and ending translation string quotes 2017-01-30 21:35:49 +02:00
cb8c32e171 Add 'Move to trash' to separate noun from verb for certain languages 2017-01-30 21:35:49 +02:00
8abec208fc Rewritten some translation strings 2017-01-30 21:35:49 +02:00
5264cb1cf4 Split firstname and lastname into two words 2017-01-30 21:33:59 +02:00
47e0e1a836 Add one and remove two spaces 2017-01-30 21:33:59 +02:00
e602612cd6 Add missing hyphens 2017-01-30 21:33:59 +02:00
9f7ae122e3 Add missing periods to translation strings 2017-01-30 21:33:59 +02:00
22caba31e3 Update sending method strings for the new shop [MAILPOET-794] 2017-01-30 13:44:26 +03:00
82ab4acb8d Improve key validation messages handling [MAILPOET-743]
Hide error messages when the sending method is changed
Verify key and display a message when saving settings
2017-01-30 13:32:43 +03:00
9466be4793 Merge pull request #804 from mailpoet/requirement_check_update
Fixes PDO extension check condition [MAILPOET-800 ]
2017-01-30 11:04:09 +03:00
a2e2090cbb Update KB link in the main plugin file 2017-01-30 10:41:11 +03:00
d100d61403 Updates KB links 2017-01-28 11:07:41 -05:00
d781ef6d01 Fixes scheduler test that fails on last Saturday 2017-01-28 11:07:26 -05:00
1dafc4da04 Adds CSS Parser to the list of vendor classes 2017-01-27 19:05:44 -05:00
063c271e40 Fixes PDO extension check condition 2017-01-27 18:49:33 -05:00
a53007e30b Merge pull request #803 from mailpoet/conflict_resolver_fix
Fixes fatal error on PHP 5.3 [MAILPOET-798]
2017-01-27 20:17:10 +03:00
c616b3299a Reverts to the use of public class property and introduces ugliness of
$_this
2017-01-27 11:51:26 -05:00
86eab0d8f8 Merge pull request #802 from mailpoet/conflict_resolver_fix
Fixes fatal error on PHP 5.3 [MAILPOET-798]
2017-01-27 19:38:12 +03:00
bfd35b1cdc Changes class variable to static; prevents
Fixed 'using $this when not in object contex' error on PHP 5.3
2017-01-27 09:12:31 -05:00
461203279b Consolidate Sending Service API calls in one class [MAILPOET-795] 2017-01-27 16:35:12 +03:00
b9c45b46ba Remove a duplicate function [MAILPOET-743] 2017-01-27 16:28:58 +03:00
1a42ae4cca Fix a unit test [MAILPOET-743] 2017-01-27 16:22:12 +03:00
f2ad7ee34c Fix code style [MAILPOET-743] 2017-01-27 16:22:12 +03:00
37017ef69d Fix appearance and logic of some key validation messages [MAILPOET-743] 2017-01-27 16:22:12 +03:00
157725c300 Fix a string for an expiring key [MAILPOET-743] 2017-01-27 16:22:12 +03:00
98d6f55a6e Tweak Sending Service key validation after a code review [MAILPOET-743]
* Abstract key state to unbound it from the API response codes
* Rename SendingServiceKeyCheck task for clarity
* Add a setter for the API key in the Bridge API class
* Make some smaller fixes
2017-01-27 16:22:11 +03:00
425d45a862 Remove unused imports from Cron tests [MAILPOET-743] 2017-01-27 16:22:11 +03:00
438b4fb1ec Add unit tests [MAILPOET-743] 2017-01-27 16:22:09 +03:00
1f91d40def Add sending service key validation [MAILPOET-743] 2017-01-27 16:20:26 +03:00
c5e1def2f9 Merge pull request #801 from mailpoet/list-unsubscribe_header
Add List-Unsubscribe header to emails [MAILPOET-793]
2017-01-26 17:51:33 -05:00
65ba834742 Merge pull request #800 from mailpoet/forms_listing_copy_fix
Fix a string displayed when there are no forms [MAILPOET-738]
2017-01-26 17:40:12 -05:00
19dc048858 Remove unused imports [MAILPOET-793] 2017-01-26 21:11:39 +03:00
938279bf8f Remove unsubscribe link generation from Mailer - to be solved in another task [MAILPOET-793] 2017-01-26 21:07:03 +03:00
dd2df429ef Add List-Unsubscribe header to emails [MAILPOET-793]
Amazon SES supports custom headers only via 'SendRawEmail' action
MailPoet Sending Service doesn't support custom headers yet
2017-01-26 15:38:23 +03:00
c4e05912ff Fix a string displayed when there are no forms [MAILPOET-738] 2017-01-26 11:19:23 +03:00
bb34e8477f Merge pull request #799 from mailpoet/welcome_email_preview_fix
Prevents previewing of sent welcome emails [MAILPOET-796]
2017-01-26 11:10:11 +03:00
32f7d7771f Prevents previewing of sent welcome emails 2017-01-25 19:06:35 -05:00
e77717c4c2 Merge pull request #798 from mailpoet/form_segments_fix
Filter lists that can be subscribed to using any particular form [MAILPOET-777]
2017-01-25 18:34:30 -05:00
d27d5ae5dd Merge pull request #797 from mailpoet/form_fields_filter
Fix fubscription form failing when some fields are absent or don't ex…
2017-01-25 17:48:48 -05:00
168263f0ea Fix code style [MAILPOET-777] 2017-01-25 16:29:23 +03:00
f1ced11809 Remove leading slashes in unit test imports [MAILPOET-764] 2017-01-25 16:28:36 +03:00
c2546e8aed Filter lists that can be subscribed to using any particular form [MAILPOET-777] 2017-01-25 16:15:42 +03:00
b7ef191641 Remove leading slashes in imports [MAILPOET-764] 2017-01-25 10:22:27 +03:00
2220a13399 Remove unused imports [MAILPOET-764] 2017-01-25 10:14:38 +03:00
31ec7475c8 - Bumps up release version to Beta 15
- Updates changelog
- Cleans up code comments in the main mailpoet.php file
2017-01-24 13:20:08 -05:00
bfdc13a8d1 Fix fubscription form failing when some fields are absent or don't exist [MAILPOET-764] 2017-01-24 21:12:56 +03:00
9a3c4ff7de Merge pull request #794 from mailpoet/initial_requirements_check
Updated plugin initialization logic [MAILPOET-790]
2017-01-23 18:45:41 +02:00
25410eb09c - Prefixes functions 2017-01-23 11:08:36 -05:00
122f88668a - Removes anonymous functions not supported on PHP 5.2 2017-01-23 11:07:29 -05:00
9c35eb9723 - Moves plugin initialization into a separate file that's included after
PHP version and core dependency checks are run
2017-01-23 09:05:21 -05:00
fa528ed1ff Merge pull request #795 from mailpoet/preview_link_update
Allows sharing of newsletter preview links [MAILPOET-791]
2017-01-23 15:52:11 +03:00
1a7623bc4a - Adds unit tests 2017-01-20 09:24:45 -05:00
3a4a37e1af - Sets subscriber to the logged in WP user when subscriber is not found 2017-01-20 09:16:43 -05:00
888a566dda - Includes newsletter hash in preview URLs thus not requiring user
validation
2017-01-20 09:16:43 -05:00
3567779faf Merge pull request #792 from mailpoet/remove_all_lists_fix
Fix 'Subscribers without a list' filter not showing unsubscribed subscribers [MAILPOET-789]
2017-01-19 20:47:58 -05:00
cb5b0bd753 - Removes PHP version check that's been moved to the main plugin file 2017-01-19 20:29:03 -05:00
88d0511adb - Loads autoloader class and initializes the plugin 2017-01-19 20:29:02 -05:00
a4a654cfd5 - Removes the use of namespace to ensure PHP 5.2 compatibility
- Adds a PHP version check and disabled the plugin if the check fails
- Adds a check for Initializer and autoload core files
- Moves plugin initialization logic outside to the Initializer class
2017-01-19 20:28:57 -05:00
4d3c90ce0d Exclude trashed and multiple-list subscribers [MAILPOET-789] 2017-01-19 23:04:29 +03:00
f51aba4dbd Bumps up release version to Beta 14
Updates changelog
2017-01-19 12:30:17 -05:00
f651c06cb9 Merge pull request #793 from mailpoet/conflict_resolver_fix
Replaces reliance on style/script names with asset location [MAILPOET-723]
2017-01-19 18:35:20 +02:00
940328c608 - Updates assets locations to more precise names 2017-01-19 11:26:32 -05:00
ce85600753 Merge pull request #789 from mailpoet/build_sh_update
Update tests and risky files removal in build.sh
2017-01-19 10:24:27 -05:00
5666116645 - Replaces reliance on style/script names with asset location
- Updates unit tests
2017-01-19 10:20:22 -05:00
815461a851 Add a unit test [MAILPOET-789] 2017-01-19 17:37:01 +03:00
1102467e39 Fix 'Subscribers without a list' filter not showing unsubscribed subscribers [MAILPOET-789] 2017-01-19 17:36:28 +03:00
a5ee865271 Merge pull request #790 from mailpoet/remove_all_lists_fix
Fix all lists removal when editing subscribers [MAILPOET-726]
2017-01-18 20:25:25 -05:00
59bda6cf6c Merge pull request #791 from mailpoet/first_last_names_fix
Fix MySQL strict mode error when saving a subscriber without first or…
2017-01-18 20:14:42 -05:00
a4d9d55b09 Fix code style [MAILPOET-780] 2017-01-18 19:37:16 +03:00
8cf918013d Fix MySQL strict mode error when saving a subscriber without first or last name [MAILPOET-780] 2017-01-18 19:06:33 +03:00
7789a10026 Fix code style [MAILPOET-726] 2017-01-18 15:47:16 +03:00
ce0ad33c32 Fix all lists removal when editing subscribers [MAILPOET-726] 2017-01-18 15:33:20 +03:00
63d1fe17a9 Merge pull request #788 from mailpoet/mysql_timeout_fix
Updates MySQL unit test condition
2017-01-17 21:30:57 +03:00
da92795635 Update tests and risky files removal in build.sh 2017-01-17 21:17:02 +03:00
915f8b5865 - Updates test condition 2017-01-17 13:03:02 -05:00
8ae939080b Bump up plugin version to 3.0.0-beta.13 2017-01-17 20:25:57 +03:00
610f74343c Merge pull request #787 from mailpoet/mysql_timeout_fix
Updates MySQL wait_timeout configuration logic [MAILPOET-786]
2017-01-17 20:21:05 +03:00
4de03db125 - Updates test condition 2017-01-17 11:59:22 -05:00
f734d47b26 - Extracts database configuration into a separate class
- Conditionally sets the session wait_timeout value
- Updates unit tests
2017-01-17 11:23:00 -05:00
9e879d0539 Merge pull request #786 from mailpoet/conflict_resolver_test_update
Fixes conflict resolver unit tests [MAILPOET-723]
2017-01-17 16:45:44 +03:00
ff6dffd626 Merge pull request #785 from mailpoet/form_css_fix
Fix Windows line breaks compatibility in unit test [MAILPOET-784]
2017-01-17 08:32:33 -05:00
efe187953c - Mocks a list of permitted assets 2017-01-17 08:30:51 -05:00
ab8a503a48 Fix Windows line breaks compatibility in unit test [MAILPOET-784] 2017-01-17 15:53:15 +03:00
81d91188ac Merge pull request #782 from mailpoet/conflict_resolution_implementation
Unloads all scripts/styles that are not loaded by default by WP in admin panel [MAILPOET-723]
2017-01-16 17:30:03 +02:00
d3353b793f Merge pull request #783 from mailpoet/mysql_timeout_fix
Increases MySQL timeout limit [MAILPOET-786]
2017-01-16 17:21:49 +03:00
625f828cce - Sets MySQL timeout to 60 seconds 2017-01-16 09:07:34 -05:00
c90dd94cf3 Merge pull request #781 from mailpoet/form_css_fix
Fixes some from CSS styles not being saved [MAILPOET-784]
2017-01-16 15:28:42 +02:00
a851527ff5 - Unloads all scripts/styles that are not loaded by default by WP in
admin panel
2017-01-15 15:35:48 -05:00
76e292f494 - Fixes test when premium unlocker is enabled 2017-01-13 18:03:25 -05:00
ed886280de - Rewrites the CSS styles processor/renderer class
- Adds unit tests
2017-01-13 13:16:57 -05:00
f3b2db48c4 - Add new dependency library used to parse CSS rules 2017-01-13 13:16:56 -05:00
b60c758281 Merge pull request #780 from mailpoet/conflict_resolution_implementation
Resolves client- and server-side conflicts with other plugins [MAILPOET-769] [MAILPOET-723]
2017-01-13 13:32:32 +02:00
b758284df7 - Fixes unit test 2017-01-12 17:49:28 -05:00
c6d43099a1 - Extracts check for current plugin page into a separate method 2017-01-12 17:48:42 -05:00
fde283dd56 Merge pull request #778 from mailpoet/settings_typo_fix
Corrects typo in subscription management shortcode [MAILPOET-783]
2017-01-12 22:22:35 +03:00
5800883416 - Updates action names 2017-01-11 21:18:37 -05:00
39a6318105 - Adds scipts/styles conflict resolver and executes it only on MailPoet
admin menu pages
- Adds unit tests
2017-01-11 20:52:03 -05:00
4196d35e35 - Adds new ConflictResolver class
- Executes URL query parameter conflict resolver action in Router class
- Adds unit tests
2017-01-11 20:52:03 -05:00
c0653ce26c - Corrects typo in subscription management shortcode 2017-01-11 13:58:50 -05:00
131f12d19e Update changelog and version for release 3.0.0-beta.12 2017-01-10 13:13:30 +02:00
3e734b5c44 Merge pull request #776 from mailpoet/js_conflict
Load MailPoet assets only on Widgets admin page [MAILPOET-740]
2017-01-09 15:38:52 -05:00
76a41d53d6 Remove unused dependencies from I18n and newsletter editor scripts 2017-01-09 22:35:40 +02:00
43cb03105b Change MailPoet JS assets to be loaded only on Admin Widgets page 2017-01-09 22:35:40 +02:00
3647f70daa Merge pull request #768 from mailpoet/date_display_fix
Updates date:dtext shortcode to display full day name [MAILPOET-772]
2017-01-09 19:36:27 +02:00
5956a200ea Merge pull request #770 from mailpoet/newsletter_preview_by_email_send_error_update
Fixes mailer error message not being displayed when sending newsletter preview [MAILPOET-773]
2017-01-09 18:07:52 +03:00
449eb28b2a - Updates code formatting 2017-01-09 09:37:56 -05:00
912fca0e73 Merge pull request #775 from mailpoet/emails_listing_performance_fix
Add queue_id index names [MAILPOET-746]
2017-01-09 09:11:11 -05:00
a3f2c32a6d - Adds custom date format as a shortcode action's argument
- Updates shortcodes logic to allow action arguments other than
"default"
2017-01-09 09:05:24 -05:00
e175e63a7c Merge pull request #771 from mailpoet/hooks_update
Updates hooks logic [MAILPOET-771]
2017-01-09 15:16:47 +02:00
bfe898aae8 Merge pull request #774 from mailpoet/cron_daemon_ping
New "ping" cron daemon router endpoint [MAILPOET-779]
2017-01-09 15:42:18 +03:00
099c2a390d Merge pull request #772 from mailpoet/ALC_update
Adds post ID data tag to ALC posts displayed as a list [MAILPOET-775]
2017-01-09 11:57:35 +03:00
8fe57ff57f Merge branch 'master' into emails_listing_performance_fix 2017-01-09 11:27:35 +03:00
6dc9f9d2ab Add queue_id index names [MAILPOET-746] 2017-01-09 11:14:38 +03:00
5463dd10e2 Merge pull request #769 from mailpoet/sender_email_header
Sets "sender" email header for SMTP/PHPMail methods [MAILPOET-774]
2017-01-09 11:02:46 +03:00
b8c56623a6 Update unit tests [MAILPOET-774] 2017-01-09 10:55:36 +03:00
a6b00e1ba7 - Adds new "ping" cron daemon router endpoint
- Removes the requirement to have data payload for router requests
2017-01-08 22:25:39 -05:00
aa0078e5e4 - Fixes CircleCI's Apache configuration. Error: "Client denied by server
configuration"
2017-01-08 21:58:28 -05:00
714f81d936 - Moves hooks setup to wp_load action
- Adds post notification scheduler to all post types
2017-01-08 17:27:02 -05:00
497c2fb595 - Introduces shortcode to custom format dates 2017-01-06 21:29:05 -05:00
c291fada74 - Adds post ID data tag when ALC is configured to display posts as a
list
2017-01-05 13:24:41 -05:00
e4166cecba - Updates date:dtext shortcode to display full day name 2017-01-04 13:06:29 -05:00
3a1568a31d - Fixes mailer error message not being displayed when newsletter preview
sending fails
2017-01-04 13:04:53 -05:00
02a5de0cd6 - Sets "sender" email header for SMTP/PHPMail methods 2017-01-04 10:22:17 -05:00
f5dce907ff Merge pull request #767 from mailpoet/2017_unit_tests
Fix hardcoded year in unit tests [MAILPOET-767]
2017-01-02 18:56:50 -05:00
2692c7c7dd Fix unit test using hardcoded year to work in 2017 2017-01-02 13:52:05 +02:00
4cfe3c534c Merge pull request #766 from mailpoet/emails_listing_performance_fix
Add indexes for even more speedy statistics retrieval [MAILPOET-746]
2016-12-31 14:22:15 -05:00
f8d78d87af Add indexes for even more speedy statistics retrieval [MAILPOET-746] 2016-12-31 22:19:51 +03:00
3b6e06eccb - Bumps up release version to 3.0.0-beta.11
- Updates changelog
2016-12-31 13:44:18 -05:00
09b2246186 Merge pull request #764 from mailpoet/emails_listing_performance_fix
Rewrite newsletter statistics query, remove redundant queue data from…
2016-12-31 13:34:22 -05:00
af83b02129 Merge pull request #765 from mailpoet/premium_plugin_unit_test
Fixes subscriber limit unit test when premium plugin is active
2016-12-31 19:33:14 +03:00
093fd2f082 Rename variables in unit test [MAILPOET-746] 2016-12-31 19:28:02 +03:00
c24d8135aa - Fixes subscriber limit unit test when premium plugin is active 2016-12-31 10:26:58 -05:00
41fdc3af13 Rewrite newsletter statistics query, remove redundant queue data from the server response [MAILPOET-746] 2016-12-31 13:14:10 +03:00
ec9417d293 Merge pull request #763 from mailpoet/logo_border_fix
Removes 1px border around logo in the welcome page
2016-12-30 20:24:36 +03:00
6eb78b5bf7 - Removes 1px border around logo on welcome/update pages that's introduced
by WP 4.7
2016-12-30 12:07:33 -05:00
877e110188 Merge pull request #762 from mailpoet/newsletter_preview_send_fix
Fixes newsletter send preview [MAILPOET-765]
2016-12-30 19:08:05 +03:00
e6d909da21 - Updates unit test 2016-12-30 10:59:37 -05:00
c26a3f704b Merge pull request #760 from mailpoet/rendering_fix
Fix ALC/regular posts being displayed without line breaks [MAILPOET-763]
2016-12-30 18:42:08 +03:00
9425e390c5 Merge pull request #761 from mailpoet/existing_subscriber_update
Update subscriber data on repeated subscriptions [MAILPOET-760]
2016-12-30 10:32:06 -05:00
698cdecbfe - Conditionally keeps margin/padding for ALC posts inside editor
- Adds line breaks for ALC posts in the renderer
2016-12-30 10:17:43 -05:00
d5a1d94bca Wipe unconfirmed subscriber data during import [MAILPOET-760] 2016-12-30 10:53:29 +03:00
4f37a44363 - Fixes newsletter preview not being sent
- Adds unit test
2016-12-29 18:46:22 -05:00
95f8f130ea Update subscriber data on repeated subscriptions [MAILPOET-760] 2016-12-29 15:29:32 +03:00
fb29800c7d - Replaces line breaks with empty paragraphs 2016-12-28 19:30:52 -05:00
d2b41a5b90 - Bumps up release version to 3.0.0-beta.10
- Updates changelog
2016-12-27 17:29:42 -05:00
71db3e569d Merge pull request #759 from mailpoet/deleted_lists_fix
Show deleted lists in newsletter listings [MAILPOET-489]
2016-12-27 11:26:59 -05:00
9a8f028a01 Fix code style [MAILPOET-489] 2016-12-27 19:16:18 +03:00
2c5e73305a Show deleted lists in newsletter listings [MAILPOET-489] 2016-12-27 13:13:05 +03:00
90e7026355 Merge pull request #739 from mailpoet/archives_shortcode_fix
Fixes archives shortcode and ability to manage subscription/unsubscribe [MAILPOET-737]
2016-12-27 09:39:15 +03:00
d63ab6a927 - Uses newsletter hash over id when looking for a newsletter 2016-12-26 19:42:00 -05:00
e5cf57e4f8 Merge pull request #756 from mailpoet/save_before_send_preview
Save newsletter before sending preview [MAILPOET-702]
2016-12-25 16:17:41 -05:00
6beada63de - Allows administrators to preview all newsletters
- Allows non-administrators to preview newsletters only when newsletter
hash is specified
2016-12-25 16:07:33 -05:00
6699b52184 Merge pull request #758 from mailpoet/return_path_implementation
Implements return path for SMTP/PHPMail/AmazonSES [MAILPOET-761]
2016-12-23 19:32:08 +03:00
c651a8bbe8 - Implements return path for SMTP/PHPMail/AmazonSES 2016-12-23 11:09:10 -05:00
4a171dca2d Merge pull request #757 from mailpoet/date_fix
Fixes date formatting [MAILPOET-759]
2016-12-23 15:20:10 +03:00
f821a60a2c - Removes open tracking code URL when newsletter is previewed 2016-12-22 22:58:43 -05:00
24a3866e2a Merge pull request #755 from mailpoet/svn_publish_improve
Improve SVN publish command [MAILPOET-758]
2016-12-22 21:14:34 -05:00
fc54f31d3d - Prevents viewing newsletters if subscriber does not exist and token
does not match
2016-12-22 21:13:21 -05:00
616883ed63 - Fixes date formatting 2016-12-22 15:29:00 -05:00
b6ce513927 Save newsletter before sending preview [MAILPOET-702] 2016-12-22 21:56:34 +03:00
456152b5cb Merge pull request #753 from mailpoet/bounced_option_on_subscription_page
Display 'bounced' option on subscription page only if the user is bounced…
2016-12-22 09:34:00 -05:00
0be790971a Merge pull request #754 from mailpoet/utf8_fix
Removes setting DB character set to utf8 [MAILPOET-757]
2016-12-22 10:27:03 +03:00
e255484bc8 Quote path in awk command for Windows compatibility [MAILPOET-758] 2016-12-22 10:16:15 +03:00
fc53aca31d Remove database dependency for SVN publish task [MAILPOET-758] 2016-12-22 10:04:28 +03:00
31116a7cf6 - Removes setting DB character set to utf8 2016-12-21 18:21:36 -05:00
ee0c824126 Add form select block unit test 2016-12-21 21:22:52 +03:00
9ee66160ec Display 'bounced' option on subscription page only if user is bounced and make it disabled [MAILPOET-754] 2016-12-21 21:04:28 +03:00
bc91b12cf3 Bump up release version to 3.0.0-beta.9 2016-12-20 19:39:15 +03:00
457c43cd77 Merge pull request #752 from mailpoet/mysql_fix
MySQL configuration fix [MAILPOET-755]
2016-12-20 19:14:52 +03:00
949d6033d7 - Fixes DB configuration being partially set 2016-12-20 10:14:04 -05:00
cad6391fc6 - Updates the format of db timezone offset to two-digit hours and minutes 2016-12-20 10:13:11 -05:00
e5e5e7b426 - Fixes preview of unsent post notifications 2016-12-19 19:19:51 -05:00
9095482af2 - Updates unit tests 2016-12-18 23:24:58 -05:00
9698cf2d2e - Optimizes ViewInBrowser router endpoint
- Optimizes ViewInBrowser class
- Optimizes and updates shortcode link category to use the refactored
  getViewInBrowserUrl() method
- Updates Shortcodes to use the refactored getViewInBrowserUrl() method
2016-12-18 23:24:57 -05:00
707afc2ae0 - Adds a new method to create a URL data object as a numeric array instead
of associative, thus reducing the size of the object
- Adds a new method to convert numeric URL data object array into associative array
- Preserves backward compatibility with previous MP3 Beta versions by checking if the
  URL data object is already an associative array
- Adds different types of newsletter display
2016-12-18 23:24:50 -05:00
3b795a3e58 - Prevents deleted newsletters from showing up in archives
- Adds a relationship to the sending queue table
- Resets hash on newsletter duplication and notification history creation
- Updates hash generation to use random string instead of newsletter id
2016-12-18 23:08:08 -05:00
062f849fc8 - Isolates shortcodes regex into a class method
- Adds a new method to create a URL data object as a numeric array instead
  of associative, thus reducing the size of the object
- Adds a new method to convert numeric URL data object array into associative
  array
- Preserves backward compatibility with previous MP3 Beta versions
  by checking if the URL data object is already an associative array
2016-12-18 23:08:08 -05:00
98c6c29716 - Limits the length of subscriber token to allow for smaller URL data
objects
2016-12-18 23:08:07 -05:00
b4da3ecfb3 - Updates post processing filter naming convention
- Allows returning of text or html rendered body from the renderer
2016-12-18 23:08:07 -05:00
709f45941a - Allows returning of text or html rendered body from the sending queue
model
2016-12-18 23:08:07 -05:00
9ac4c3de72 - Adds new "hash" column to the newsletters table
- Updates newsletter model to automatically generate hash when saving
  newsletter
- Adds new getByHash method to the newsletter model
2016-12-18 23:08:07 -05:00
eee22227b3 - Removes unused class import
- Fixes newsletter URL generation in archive shortcode
- Disables generation of subscription management/unsubscribe/view in
  browser shortcodes when newsletter is previewed
2016-12-18 23:08:07 -05:00
edcce542c3 Merge pull request #747 from mailpoet/svn_push_command
Add a command to push new release to WP SVN [MAILPOET-673]
2016-12-16 14:50:37 +02:00
a354a380ba Merge pull request #749 from mailpoet/change_dup_import_msg
Change no subscribers added/updated string [MAILPOET-741]
2016-12-16 07:46:49 -05:00
54eb667654 Merge pull request #751 from mailpoet/makepot
Makepot task fix [MAILPOET-742]
2016-12-16 15:24:58 +03:00
10207112bc Fix regex matching __() function 2016-12-16 12:23:06 +02:00
892eea238f Merge pull request #750 from mailpoet/fix_bounce_api_response_code
Change bounce API OK response code from 201 to 200 [MAILPOET-747]
2016-12-15 17:24:09 -05:00
e6bb1666ee Remove obsolete wysija-newsletters gettext domain 2016-12-15 20:24:04 +02:00
2be9985d20 Fix finding __() and _n() i18n function calls 2016-12-15 20:24:04 +02:00
f4b7acca1e Fix parsing function call arguments when arg strings contain commas 2016-12-15 20:24:04 +02:00
de9d3655f0 Change bounce API OK response code from 201 to 200 [MAILPOET-747] 2016-12-15 19:49:39 +03:00
dfa13726e7 Add force mode to svn:publish command, add svn:checkout command 2016-12-15 16:20:12 +03:00
61ab583030 Merge pull request #748 from mailpoet/bump_wp_tested_to_4.7
Bump 'Tested up to' and 'Requires at least' versions [MAILPOET-744]
2016-12-15 12:20:19 +02:00
6954501915 Change no subscribers added/updated string [MAILPOET-741] 2016-12-15 12:02:06 +03:00
45a8103322 Bump 'Tested up to' and 'Requires at least' versions [MAILPOET-744] 2016-12-15 11:52:21 +03:00
c4896f4662 Merge pull request #746 from mailpoet/ALC_title_alignment
Fixes alignment not working for ALC titles [MAILPOET-734]
2016-12-15 10:59:23 +03:00
71711b4a0d Add a command to push new release to WP SVN 2016-12-14 18:24:41 +03:00
2634b606f6 - Fixes ALC transformer class to append style tags with semicolon 2016-12-13 19:32:50 -05:00
0aa48b9121 Bump up release version to 3.0.0-beta.8 2016-12-13 14:28:36 +02:00
1157cc8b9a Merge pull request #741 from mailpoet/ci_email_tests
Enables email sending tests in CI [MAILPOET-681]
2016-12-13 14:53:47 +03:00
88599963e0 Merge pull request #743 from mailpoet/vendor_conflict
Add dependency checking requirement [MAILPOET-690]
2016-12-12 15:24:56 -05:00
57706dc1b3 Merge pull request #745 from mailpoet/premium_plugin
Add action to notify 3rd party plugins that MP is initialized
2016-12-12 15:59:28 +02:00
694402e9f2 Merge pull request #744 from mailpoet/changelog_from_readme_on_update_page
Display changelog from readme.txt on Update page [MAILPOET-708]
2016-12-12 14:39:24 +02:00
891239bf4e Check readme file is readable before trying to parse it 2016-12-12 15:31:10 +03:00
232494e1a2 added 'mailpoet_initialized' action so that 3rd party plugin can check if mp is loaded 2016-12-12 11:28:38 +01:00
4ae55230da Display changelog from readme.txt on Update page [MAILPOET-708] 2016-12-12 10:04:36 +03:00
eda4a9edcc Fix regex to work on windows and match only mailpoet folder as valid 2016-12-09 23:20:48 +02:00
5fb699fd5b Remove trailing slash to support searches in Windows 2016-12-09 23:07:55 +02:00
7c5e0212ad Fix calling a method on an undefined variable 2016-12-09 22:44:43 +02:00
44a77e097b Escaped path when used in regex pattern 2016-12-09 22:41:44 +02:00
22fd9e31f7 Fix variable name typo 2016-12-09 18:12:22 +02:00
bbe3d48ec1 Add dependency checking to prevent conflicts with other plugins
MAILPOET-690
2016-12-09 18:05:19 +02:00
449978d7c1 Merge pull request #742 from mailpoet/mysql_group_fix
fix sql errors with mysql 5.6 & ONLY_FULL_GROUP_BY mode [MAILPOET-739]
2016-12-09 09:14:22 -05:00
0535e1eaeb Merge pull request #737 from mailpoet/sending_service_bounce_sync
Add bounce synchronization with MailPoet Sending Service [MAILPOET-696]
2016-12-08 21:47:55 -05:00
4dfe4e4997 fix sql errors with mysql 5.6 & ONLY_FULL_GROUP_BY mode 2016-12-08 18:38:03 +01:00
33a184fc4a Store emails sent during tests in test reports as an artifact 2016-12-08 18:19:50 +02:00
19b34ed838 Add a fake sendmail mailer to enable sending tests in CI 2016-12-08 17:57:21 +02:00
ca17e0c4da Merge pull request #740 from mailpoet/blockquote_rendering_fix
Fixes rendering of non-paragraph elements inside blockquote [MAILPOET-736]
2016-12-08 13:07:57 +02:00
347e491865 Merge pull request #738 from mailpoet/asset_cache_breaker
Add cache breaker query string to plugin static asset URLs [MAILPOET-713]
2016-12-08 10:51:02 +01:00
59b6877675 - Fixes non-paragraph elements inside blockquotes note being rendered
- Updates blockquote table width to 100% and allows text alignment
- Updates unit tests
2016-12-07 20:50:07 -05:00
6728203672 Add cache breaker query string to plugin static asset URLs
MAILPOET-713
2016-12-07 16:22:53 +02:00
058ba53622 Bump up release version 2016-12-07 12:26:29 +02:00
8a1450d7d6 Add Mock API class to unit tests 2016-12-07 10:51:38 +03:00
49f2b147be Add fixes for MySQL strict mode 2016-12-07 10:31:38 +03:00
8f3b2e6c0b Fix code style 2016-12-06 23:06:45 +03:00
baf0d374ae Add bounce synchronization with MailPoet Sending Service [MAILPOET-696] 2016-12-06 22:48:36 +03:00
465665271d Merge pull request #736 from mailpoet/post_notification_history_fix
Fixes post notification history listing [MAILPOET-729]
2016-12-06 12:59:54 +01:00
663f39d749 Merge pull request #735 from mailpoet/alc_boolean_fix
Fix displaying dividers in ALC blocks MAILPOET-721
2016-12-05 22:37:42 -05:00
62349900b9 - Fixes post notification listing not displaying because of
undefined value passed to the `renderQueueStatus` method
2016-12-05 22:02:01 -05:00
9ccf2a9294 Merge pull request #733 from mailpoet/newsletter_preview_send_fix
Render subscriber shortcodes when sending a newsletter preview [MAILPOET-725]
2016-12-05 21:02:38 +03:00
b2f662c1d5 Fix displaying dividers in ALC blocks MAILPOET-721 2016-12-05 19:45:46 +02:00
43b23994a9 - Updates function arguments 2016-12-05 12:15:24 -05:00
9708019ab6 - Returns false when subscriber is defined but not an object
- Updates unit tests
2016-12-05 11:48:20 -05:00
8819d9154a Merge pull request #734 from mailpoet/db_update_check
handle db update [MAILPOET-720]
2016-12-05 18:27:29 +02:00
5e23aacdca Merge pull request #730 from mailpoet/sending_queue_worker_update
Stop sending when newsletter is trashed [MAILPOET-716]
2016-12-05 17:27:42 +02:00
398109dcf7 - Runs mailer and cron execution limit checks at the same and in 3
locations: before processing, after each send operations and after queue
  processing
- Fixes an issue with sending continuing when newsletter is trashed
- Updates unit tests
2016-12-05 09:37:18 -05:00
b7c1594cf6 Merge pull request #732 from mailpoet/import_export_select2_fix
Import/export dependency injection of Select2 [MAILPOET-723]
2016-12-05 16:25:29 +02:00
3d24f0c77b handle db update 2016-12-05 13:14:12 +01:00
13001008c4 Merge pull request #731 from mailpoet/sending_restart_update
Prevents sent newsletters from being paused/updates error messages [MAILPOET-718] [MAILPOET-719]
2016-12-05 13:54:34 +03:00
4b8caccb46 - Fixes subscriber shortcodes not being rendered when sending a preview
newsletter
2016-12-04 19:48:25 -05:00
04ae6efaf6 - Updates connection/mailer error messages 2016-12-04 17:22:20 -05:00
98812834f6 - Uses dependency injection for Select2 library 2016-12-03 19:18:17 -05:00
732ea59e34 Merge pull request #727 from mailpoet/import_step2_subs_count_fix
Fix import step 2 list selection box tallying unconfirmed subscribers… [MAILPOET-709]
2016-12-02 11:20:18 -05:00
9b9e31fcc8 - Prevents sent newsletters' status from changing to "paused" when
sending error is displayed
2016-12-02 10:39:29 -05:00
9b44becc7d Merge pull request #729 from mailpoet/mailer_endpoint_update
Fixes mailer's error message not being displayed in Settngs [MAILPOET-715]
2016-12-01 10:49:36 +03:00
82e153a2e8 - Fixes mailer's error message not being displayed 2016-11-30 13:31:02 -05:00
dc981b23e4 Merge pull request #728 from mailpoet/mailer_tests_update
Updates mailer methods unit tests [MAILPOET-714]
2016-11-30 21:28:45 +03:00
eb3f872dc6 - Updates mailer unit test 2016-11-30 12:39:27 -05:00
3f9b41f042 Merge pull request #725 from mailpoet/import_fix
Fixes subscribers not being added to list(s) upon import [MAILPOET-712]
2016-11-30 19:15:59 +03:00
9e4762cbd7 - Updates mailer methods unit tests 2016-11-30 10:59:34 -05:00
249824b83c - Updates unit test 2016-11-30 10:54:07 -05:00
0b89a6d2ff Merge pull request #726 from mailpoet/cron_blocking_requests
Fixes Cron on hosts that don't support non-blocking HTTP requests [MAILPOET-692]
2016-11-30 14:17:13 +02:00
b074b01b9f Fix import step 2 list selection box tallying unconfirmed subscribers (item B from #476)
Segments::getSegmentsForImport() was aliased to Segments::getSegmentsWithSubscriberCount()
2016-11-30 12:21:08 +03:00
9a0bb52860 - Fixes subscribers not being added to list(s) upon import 2016-11-29 15:28:56 -05:00
bf36deccb2 - Enables blocking requests for Cron and fixes an issue on hosts that
don't support non-blocking requests
2016-11-29 15:03:51 -05:00
f77e24105d Merge pull request #709 from mailpoet/sending_restart
Sending retry/pause/restart [MAILPOET-653]
2016-11-29 13:51:53 +01:00
f90ba712ee Bump up release version to 3.0.0-beta.6 2016-11-29 14:18:40 +02: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
c221e52cc4 Remove a temp file [MAILPOET-684] 2016-11-29 13:39:11 +03:00
556803af5d Merge pull request #724 from mailpoet/scheduler_and_queue_priority_update
Scheduler and queue priority update [MAILPOET-706] [MAILPOET-707]
2016-11-29 13:12:52 +03:00
5bc17f5e76 - Saves welcome emails with high priority
- Fixes welcome emails not being sent to WP users
- Updates unit tests
2016-11-28 18:49:35 -05:00
fe537a0445 - Adds a missing class import 2016-11-28 12:20:22 -05:00
08ec4e83c8 - Adds method to clear previous errors
- Updates unit tests
- Rebases master
2016-11-28 12:20:13 -05:00
e72a8efbd4 - Sorts queues to process according to their priority in ascending manner 2016-11-28 12:04:21 -05:00
c49d96d63a - Adds piority constants
- Sets medmium priority as default when none is specified
2016-11-28 12:03:09 -05: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
f1985f7e81 refresh listing after resuming mailer sending 2016-11-28 09:50:32 -05:00
8c14df6c1f - Rebases master and updates method names 2016-11-28 09:50:32 -05:00
181c0cab36 - Displays notice only when sending has been paused 2016-11-28 09:50:32 -05:00
2a04c3c054 refactored mailer mixin - removed notices.jsx 2016-11-28 09:50:32 -05:00
80efc3c12d Added callback afterGetItems on Listings
Updated MP Notice to allow reuse of notices (by id)
Updated newsletters endpoint's listing method to include mta_log & mta_method in response
Updated all newsletter listings in order to dynamically display mailer error
2016-11-28 09:50:32 -05:00
8b96806b11 - Updates variable names 2016-11-28 09:50:32 -05:00
a2f7fbac33 - Checks window parameters
- Defines constants in main components and passes them to
  subcomponents/mixins
2016-11-28 09:50:32 -05:00
981cb91a13 - Adds space 2016-11-28 09:50:32 -05:00
89545ba104 - Adds unit tests 2016-11-28 09:50:32 -05:00
709b76d01e - Updates/adds translations 2016-11-28 09:50:32 -05:00
da2d6dd405 - Updates newsletter listings components to render notices 2016-11-28 09:50:32 -05:00
28f5375609 - Adds new component to display notices in newsletter listings
- Displays sending error notice if sending has been globally paused
2016-11-28 09:50:32 -05:00
37a259f73b - Displays "paused" status for all newsletters if sending is paused
globally
- Adds new mixin to globally restart sending
2016-11-28 09:50:32 -05:00
cdb3b94cbd - Updates mailer endpoint to handle sending restart 2016-11-28 09:50:32 -05:00
72f696e834 - Removes unused logic to deal with "failed" subscribers
- Updates sending queue worker to handle new mailer response format
2016-11-28 09:50:32 -05:00
57dff5ff00 - Corrects code comments
- Resets mailer log on each run
2016-11-28 09:50:32 -05:00
90a0061233 - Updates mailer log to record error messages, track retry attempts and
pause sending
2016-11-28 09:50:32 -05:00
2955b6d5a0 - Clarifies const values 2016-11-28 09:50:32 -05:00
1d03482463 - Updates API endpoint with to handle the new mailer response format 2016-11-28 09:50:32 -05:00
d1def923f8 - Enables error response in newsletter preview if sending fails 2016-11-28 09:50:32 -05:00
8a278360f4 - Adds methods to format mailer send/connection succes & error results
- Updates all mailing methods to return true on success and error message
  on failure
2016-11-28 09:50:32 -05:00
5d12de8ec0 - Removes unused mailing methods 2016-11-28 09:47:07 -05:00
daa36c833f Merge pull request #722 from mailpoet/mailer_sender_and_subscriber_unicode_support
Fix for unicode characters in to/reply-to/from fields [MAILPOET-705]
2016-11-28 16:02:02 +02:00
a9e02f745f - Encodes non-ASCII from/reply-to/to addresses as per RFC 2047 2016-11-28 08:56:14 -05:00
a04f5a2d25 Merge pull request #717 from mailpoet/import_fix
Fixes import of duplicate subscribers and whose column data is incomplete [MAILPOET-694]
2016-11-28 15:05:35 +02:00
71fbc1a7b0 - Simplifies code that prepares subscriber custom field data for
creation/update
- Updates tests
2016-11-27 20:53:20 -05:00
677060491d - Fixes an issue with unicode characters not rendering in from/reply-to/to
fields.
2016-11-25 15:34:55 -05:00
03fec11947 Merge pull request #720 from mailpoet/renderer_update
Newsletter text version rendering warning [MAILPOET-704]
2016-11-25 16:26:02 +02:00
a0817a1e97 Merge pull request #721 from mailpoet/amazon_ses_fix
Amazon SES sending fix [MAILPOET-698]
2016-11-25 16:00:49 +02:00
1926b7ba29 - urlencodes POST data and fixes the "unable to determine service/operation
name to be authorized" error
2016-11-24 17:20:54 -05:00
aec6d241e8 - Highlights chosen SES region in settings 2016-11-24 13:10:32 -05:00
75602be304 - Converts special chars to HTML entities in subject
- Silences warnings from HTML->text renderer
2016-11-24 11:15:06 -05:00
299c922cef Merge pull request #719 from mailpoet/exporttest_windows_fix
Escape paths for regexes in ExportTest->testItCanConstruct() to make …
2016-11-24 09:01:26 -05:00
29673d0799 Escape paths for regexes in ExportTest->testItCanConstruct() to make it pass on Windows 2016-11-24 16:23:11 +03:00
7c236e6209 Merge pull request #718 from mailpoet/sending_worker_execution_enforcement
Enforces worker execution limit between each send operation [MAILPOET-697]
2016-11-24 12:22:04 +02:00
8e438e1819 - Enforces worker execution limit between each send operation 2016-11-23 12:02:48 -05:00
0c8cc27ea2 - Updates MailChimp API key regex 2016-11-22 12:44:58 -05:00
6f49201393 - Extends save() method to convert emails to lowercase format 2016-11-22 12:13:13 -05:00
7bf9e8b06e - Removes unused method 2016-11-22 12:12:51 -05:00
96eaafe012 Bump up release version to 3.0.0-beta.5 2016-11-22 14:21:16 +02:00
9a82e718ce Merge pull request #715 from mailpoet/queue_delete_update
Sending queue deletes parent newsletter [MAILPOET-683]
2016-11-22 13:49:08 +02:00
f9e4f3f584 Merge pull request #716 from mailpoet/autoload_fix
Checks for existence of autoload.php [MAILPOET-693]
2016-11-22 12:17:25 +02:00
d8b1be9ccc - Deletes related custom fields when deleting subscriber
- Updates unit tests
2016-11-21 22:38:43 -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
0af99c771e - Fixes 'get_userdata() function not found' error
- Tidies up format
2016-11-21 20:26:08 -05:00
c5488571be - Removes unused class imports 2016-11-21 20:25:23 -05:00
e0aeeb29d9 - Deletes post notification history record when no posts are found and
when sending queue record is deleted
- Reverts back changes to the model's delete() method
- Updates unit tests
2016-11-21 19:27:08 -05:00
d5a9b84ca3 - Updates "tested up to" WP version
- Includes a check for missing autoloader and displays an error notice
2016-11-21 18:54:04 -05:00
fd417d8d95 Merge pull request #712 from mailpoet/access_to_temp_folder
Restricts access to plugin's temp/cache folder [MAILPOET-643]
2016-11-21 20:10:39 +02:00
0291c3a9a0 - Updates models' delete() method to delete parent newsletter
- Updates unit tests
2016-11-20 12:31:04 -05:00
fd6e6de547 Merge pull request #714 from mailpoet/ui_fixes
Admin UI fixes
2016-11-20 12:19:12 -05:00
bf54eeb345 - Updates error messages and links to KB articles
- Adds polyfills for mb_string functions
- Aborts initialization if PDO extension is not found (critical
  requirement)
2016-11-20 12:14:27 -05:00
697afcbeba Add wysija to the list of contributors in readme.txt 2016-11-18 14:00:22 +02:00
5773fa7994 Losslessly optimize image assets with kraken.io MAILPOET-669 2016-11-18 13:48:52 +02:00
b59785c4b6 Updated KB link text in MailChimp import MAILPOET-677 2016-11-18 13:09:20 +02:00
fbf9f6f902 - Removed "beta" in superscript on welcome and update pages;
- Added "Get back to MailPoet" button on update page;
MAILPOET-678
2016-11-18 13:06:22 +02:00
adc232fc3f Prevent MailPoet Page post type from showing up in menu MAILPOET-674 2016-11-18 12:56:06 +02:00
e3c1ff6c8c Merge pull request #713 from mailpoet/editor_fixes
ALC block tool fixes [MAILPOET-676]
2016-11-18 11:39:53 +01:00
77edd93965 - Prevent tools of ALC inner blocks from showing on hover MAILPOET-676;
- Fix overlay of ALC blocks to appear even if mouse hovers over its
  block tools;
2016-11-17 15:59:51 +02:00
7d15c391ea - Adds new Requirements Checker class
- Updates Initializer to check requirements
2016-11-16 21:46:21 -05:00
8fb29e2418 - Moves Env class's error handling to the Initializer class 2016-11-15 12:13:01 -05:00
b348c350c0 - Adds expection handle to the main mailpoet script
- Throws exception when a temporary/cache folder can't be created
2016-11-15 11:41:09 -05:00
fbeddb8af2 Bump up release version to 3.0.0-beta.4 2016-11-15 12:45:51 +02:00
54f6ab0c79 - Abstracts path creation logic
- Adds blank index.php to cache and temp folders
- Updates unit tests
- Extracts cache folder location from Renderer to Env class
- Implements #643
2016-11-14 21:03:26 -05:00
8c3525589c Merge pull request #708 from mailpoet/editor_shortcodes
Fix URLs containing shortcodes in TinyMCE [MAILPOET-670]
2016-11-14 18:09:16 -05:00
58f97ea43d Merge pull request #711 from mailpoet/issue_645
[MAILPOET-645] Protect some fields from being specified when subscribing
2016-11-14 18:39:27 +02:00
8e4c3ea7ea Merge pull request #710 from mailpoet/subscriber_limit_fix
Fixes total subscriber count [MAILPOET-671]
2016-11-14 17:43:46 +02:00
3865a8e8cd protect some fields from being edit when subscribing 2016-11-14 15:20:18 +01:00
02221f6833 Merge pull request #707 from mailpoet/template_cache
Gracefully display Twig exceptions as error messages [MAILPOET-667]
2016-11-14 10:07:58 +01:00
b63ef8cca0 - Updates total subscriber count to exclude trashed records
- Updates unit test
2016-11-12 19:33:46 -05:00
aabe71d473 - Change TinyMCE to not convert URLs containing shortcodes;
- Refactor TinyMCE calls into reusable Behavior;
MAILPOET-670
2016-11-11 15:30:09 +02:00
1405249712 Merge pull request #706 from mailpoet/issue_644
MAILPOET-644
2016-11-10 12:47:03 -05:00
16ee5e934a Fix typo in property name 2016-11-10 19:17:23 +02:00
74276b45c5 use verifyToken instead of generateToken 2016-11-10 17:50:38 +01:00
b046c9ea4b Gracefully catches Twig exceptions and displays error messages
MAILPOET-667 #time 3h
2016-11-10 16:33:50 +02:00
8bd7f5f169 added token verification when updating subscription 2016-11-10 12:21:20 +01:00
ee119215c0 Merge pull request #705 from mailpoet/issue_646
Mass subscriptions protection + EU laws compliance
2016-11-09 12:54:02 +02:00
c22d3c8957 Renamed 'ip' column to 'subscribed_ip'
- updated code based on PR review
2016-11-09 11:43:08 +01:00
0dd7a3990f Merge pull request #703 from mailpoet/hs_beacon
HelpScout Beacon update
2016-11-08 12:54:06 -05:00
1a6b032943 Added subscription limit in order to avoid mass subscriptions 2016-11-08 17:29:28 +01:00
70a13a4774 Update helpscout beacon code to include support KB article search 2016-11-07 17:27:28 +02:00
421 changed files with 8981 additions and 2844 deletions

View File

@ -8,8 +8,7 @@ Listen 8080
LogLevel notice
<Directory /home/ubuntu/mailpoet/wordpress>
AllowOverride All
Allow from All
Require all granted
</Directory>
</VirtualHost>

8
.circle_ci/fake-sendmail.rb Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/ruby
path = "/tmp"
Dir.mkdir(path) if !File.exists?(path)
File.open("#{path}/mailpoet-#{Time.now.to_f}.txt", "w") do |f|
sleep 5
f.puts ARGV.inspect
$stdin.each_line { |line| f.puts line }
end

View File

@ -0,0 +1,3 @@
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /home/ubuntu/mailpoet/.circle_ci/fake-sendmail.rb

View File

@ -13,4 +13,7 @@ WP_TEST_MAILER_MAILPOET_API=""
WP_TEST_MAILER_SENDGRID_API=""
WP_TEST_MAILER_SMTP_HOST=""
WP_TEST_MAILER_SMTP_LOGIN=""
WP_TEST_MAILER_SMTP_PASSWORD=""
WP_TEST_MAILER_SMTP_PASSWORD=""
WP_SVN_USERNAME=""
WP_SVN_PASSWORD=""
WP_TRANSIFEX_API_TOKEN=""

3
.gitignore vendored
View File

@ -17,4 +17,5 @@ tests/javascript/testBundles
assets/css/*.css
assets/js/*.js
.vagrant
lang
lang
.mp_svn

9
.tx/config Normal file
View File

@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com
[mp3.mailpoet]
source_file = lang/mailpoet.pot
file_filter = lang/mailpoet-<lang>.po
source_lang = en_US
type = PO
minimum_perc = 100

View File

@ -128,3 +128,33 @@ _n()
- Handlebars.
You can use Twig i18n functions in Handlebars, just load your template from a Twig view.
# Build
To build a plugin , run `./build.sh`.
Some build process steps are described below (their dependencies etc.).
## packtranslations step
This step imports translations from Transifex and generates MO files. It requires:
* `tx` client: https://docs.transifex.com/client/installing-the-client
* `msgfmt` command (from Gettext package)
Finally , a `WP_TRANSIFEX_API_TOKEN` environment variable should be initialized with a valid key.
# Publish
Before you run a publishing command, you need to:
1. Ensure there is an up-to-date local copy of MailPoet SVN repository in `.mp_svn` directory by running `./do svn:checkout`.
2. Have all your features merged in Git `master`, your `mailpoet.php` and `readme.txt` tagged with a new version.
3. Run `./build.sh` to produce a `mailpoet.zip` distributable archive.
Everything's ready? Then run `./do svn:publish`.
If the job goes fine, you'll get a message like this:
```
Go to '.mp_svn' and run 'svn ci -m "Release 3.0.0-beta.9"' to publish the
release
```
It's quite literal: you can review the changes to be pushed and if you're satisfied, run the suggested command to finish the release publishing process.
If you're confident, execute `./do svn:publish --force` and your release will be published to the remote SVN repository without manual intervention (automatically). For easier authentication you might want to set `WP_SVN_USERNAME` and `WP_SVN_PASSWORD` environment variables.

View File

@ -68,9 +68,9 @@ class RoboFile extends \Robo\Tasks {
}
function compileAll() {
$collection = $this->collection();
$collection->add(array($this, 'compileJs'));
$collection->add(array($this, 'compileCss'));
$collection = $this->collectionBuilder();
$collection->addCode(array($this, 'compileJs'));
$collection->addCode(array($this, 'compileCss'));
return $collection->run();
}
@ -99,16 +99,15 @@ class RoboFile extends \Robo\Tasks {
function makepot() {
return $this->_exec('./node_modules/.bin/grunt makepot'.
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
' --base_path '.__DIR__
' --gruntfile='.__DIR__.'/tasks/makepot/makepot.js'.
' --base_path='.__DIR__
);
}
function pushpot() {
return $this->_exec('./node_modules/.bin/grunt pushpot'.
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
' --base_path '.__DIR__
);
function packtranslations() {
// Define WP_TRANSIFEX_API_TOKEN env. variable
$this->loadEnv();
return $this->_exec('./tasks/pack_translations.sh');
}
function testUnit($opts=['file' => null, 'xml' => false]) {
@ -171,9 +170,9 @@ class RoboFile extends \Robo\Tasks {
}
function qa() {
$collection = $this->collection();
$collection->add(array($this, 'qaLint'));
$collection->add(function() {
$collection = $this->collectionBuilder();
$collection->addCode(array($this, 'qaLint'));
$collection->addCode(function() {
return $this->qaCodeSniffer('all');
});
return $collection->run();
@ -193,14 +192,137 @@ class RoboFile extends \Robo\Tasks {
'./vendor/bin/phpcs '.
'--standard=./tasks/code_sniffer/MailPoet '.
'--ignore=./lib/Util/Sudzy/*,./lib/Util/CSS.php,./lib/Util/XLSXWriter.php,'.
'./lib/Config/PopulatorData/Templates/* '.
'./lib/Util/pQuery/*,./lib/Config/PopulatorData/Templates/* '.
'lib/ '.
$severityFlag
);
}
function svnCheckout() {
return $this->_exec('svn co https://plugins.svn.wordpress.org/mailpoet/ .mp_svn');
}
function svnPublish($opts = ['force' => false]) {
$this->loadWPFunctions();
$svn_dir = ".mp_svn";
$plugin_data = get_plugin_data('mailpoet.php', false, false);
$plugin_version = $plugin_data['Version'];
$plugin_dist_name = sanitize_title_with_dashes($plugin_data['Name']);
$plugin_dist_file = $plugin_dist_name . '.zip';
$this->say('Publishing version: ' . $plugin_version);
// Sanity checks
if(!is_readable($plugin_dist_file)) {
$this->say("Failed to access " . $plugin_dist_file);
return;
} elseif(!file_exists($svn_dir . "/.svn/")) {
$this->say("$svn_dir/.svn/ dir not found, is it a SVN repository?");
return;
} elseif(file_exists($svn_dir . "/tags/" . $plugin_version)) {
$this->say("A SVN tag already exists: " . $plugin_version);
return;
}
$collection = $this->collectionBuilder();
// Clean up tmp dirs if the previous run was halted
if(file_exists("$svn_dir/trunk_new") || file_exists("$svn_dir/trunk_old")) {
$collection->taskFileSystemStack()
->stopOnFail()
->remove(array("$svn_dir/trunk_new", "$svn_dir/trunk_old"));
}
// Extract the distributable zip to tmp trunk dir
$collection->taskExtract($plugin_dist_file)
->to("$svn_dir/trunk_new")
->preserveTopDirectory(false);
// Rename current trunk
if(file_exists("$svn_dir/trunk")) {
$collection->taskFileSystemStack()
->rename("$svn_dir/trunk", "$svn_dir/trunk_old");
}
// Replace old trunk with a new one
$collection->taskFileSystemStack()
->stopOnFail()
->rename("$svn_dir/trunk_new", "$svn_dir/trunk")
->remove("$svn_dir/trunk_old");
// Add new repository assets
$collection->taskFileSystemStack()
->mirror('./plugin_repository/assets', "$svn_dir/assets_new");
// Rename current assets folder
if(file_exists("$svn_dir/assets")) {
$collection->taskFileSystemStack()
->rename("$svn_dir/assets", "$svn_dir/assets_old");
}
// Replace old assets with new ones
$collection->taskFileSystemStack()
->stopOnFail()
->rename("$svn_dir/assets_new", "$svn_dir/assets")
->remove("$svn_dir/assets_old");
// Windows compatibility
$awkCmd = '{print " --force \""$2"\""}';
// Mac OS X compatibility
$xargsFlag = (stripos(PHP_OS, 'Darwin') !== false) ? '' : '-r';
$collection->taskExecStack()
->stopOnFail()
// Set SVN repo as working directory
->dir($svn_dir)
// Remove files from SVN repo that have already been removed locally
->exec("svn st | grep ^! | awk '$awkCmd' | xargs $xargsFlag svn rm")
// Recursively add files to SVN that haven't been added yet
->exec("svn add --force * --auto-props --parents --depth infinity -q")
// Tag the release
->exec("svn cp trunk tags/$plugin_version");
$result = $collection->run();
if($result->wasSuccessful()) {
// Run or suggest release command depending on a flag
$release_cmd = "svn ci -m \"Release $plugin_version\"";
if(!empty($opts['force'])) {
$svn_login = getenv('WP_SVN_USERNAME');
$svn_password = getenv('WP_SVN_PASSWORD');
if ($svn_login && $svn_password) {
$release_cmd .= " --username $svn_login --password $svn_password";
} else {
$release_cmd .= ' --force-interactive';
}
$result = $this->taskExecStack()
->stopOnFail()
->dir($svn_dir)
->exec($release_cmd)
->run();
} else {
$this->yell(
"Go to '$svn_dir' and run '$release_cmd' to publish the release"
);
}
}
return $result;
}
protected function loadEnv() {
$dotenv = new Dotenv\Dotenv(__DIR__);
$dotenv->load();
}
protected function loadWPFunctions() {
$this->loadEnv();
define('ABSPATH', getenv('WP_TEST_PATH') . '/');
define('WPINC', 'wp-includes');
require_once(ABSPATH . WPINC . '/functions.php');
require_once(ABSPATH . WPINC . '/formatting.php');
require_once(ABSPATH . WPINC . '/plugin.php');
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
}

View File

@ -9,12 +9,13 @@
background: rgba(255, 255, 255, 0)
transition: background .15s ease-out
&:hover
.mailpoet_automated_latest_content_block:hover &
background: rgba(255, 255, 255, 0.7)
cursor: pointer
.mailpoet_automated_latest_content_block_posts
overflow: auto
pointer-events: none
& > .mailpoet_block
width: 100%

View File

@ -34,7 +34,7 @@ $block-text-line-height = $text-line-height
position: relative
line-height: $block-text-line-height
p, h1, h2, h3, h4, h5, h6
h1, h2, h3, h4, h5, h6
line-height: $block-text-line-height
padding: 0
margin: 0
@ -44,9 +44,15 @@ $block-text-line-height = $text-line-height
h1, h2, h3, h4, h5, h6
margin-bottom: 0.3em
p
p:not(.mailpoet_wp_post)
margin-top: 0
margin-bottom: 0
padding: 0
margin: 0
p
line-height: $block-text-line-height
font-style: normal
font-weight: normal
ul

View File

@ -131,6 +131,7 @@ body
display: none
.wrap > .mailpoet_notice,
.notice
.update-nag
margin-left: 2px + 15px !important

View File

@ -15,7 +15,7 @@
padding 15px 15px 0 15px
margin 0 25px 25px 0
width 300px
height 250px
height 300px
border 1px solid #dedede
background-color #fff
h3

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 779 B

BIN
assets/img/datepicker/animated-overlay.gif Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 985 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 140 B

BIN
assets/img/datepicker/ui-bg_flat_10_000000_40x100.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 83 B

BIN
assets/img/datepicker/ui-bg_glass_100_f6f6f6_1x400.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 85 B

BIN
assets/img/datepicker/ui-bg_glass_100_fdf5ce_1x400.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 139 B

BIN
assets/img/datepicker/ui-bg_glass_65_ffffff_1x400.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

After

Width:  |  Height:  |  Size: 161 B

BIN
assets/img/datepicker/ui-icons_222222_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/img/datepicker/ui-icons_228ef1_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/img/datepicker/ui-icons_454545_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
assets/img/datepicker/ui-icons_ef8c08_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/img/datepicker/ui-icons_ffd27a_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/img/datepicker/ui-icons_ffffff_256x240.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1016 B

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 767 B

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 397 B

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 909 B

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 KiB

After

Width:  |  Height:  |  Size: 262 KiB

Some files were not shown because too many files have changed in this diff Show More