fdc5aad62a
renderer: Added unit test for PostTransformer structrure generation without layout
2018-06-11 09:00:08 +02:00
67b66856f5
removing images and headings from the excerpt
2018-06-01 11:21:59 +00:00
dbdf432c1d
Merge pull request #1347 from mailpoet/queue_rendered_subject_improvement
...
Uses queue's rendered subject when sending newsletter [MAILPOET-1373]
2018-05-17 08:35:25 -04:00
1c6c275295
Passes single array with shortcode details
2018-05-14 19:16:24 -04:00
5912004c10
Fix: CPU usage and sending issue on slow host
...
On some slow host, the `newsletter` table get filled with
duplicated `notification_history` marked as `sending` that
never get sent.
To prevent this we've made the two following changes:
* We prevent firing `publis_*` hooks on post_type which
are excluded from search.
* We do not schedule a new post notification email if one
has an `notification_history` entry marked as `sending`.
[MAILPOET-1371]
2018-05-10 15:25:23 +02:00
ee4aefb6e3
Passes full shortcode object as function argument
2018-05-07 19:07:53 -04:00
be6647d763
Fix unit tests [MAILPOET-903]
2018-02-13 11:39:50 +03:00
e7ffe4d694
Replaces spaces in image URLs
2017-11-21 21:02:33 -05:00
962188bdb8
Adds unit test
2017-11-14 13:39:56 -05:00
996e6b16e7
Merge pull request #1142 from mailpoet/links
...
Enabling links on header and footer on preview [MAILPOET-1121]
2017-10-19 20:07:32 +03:00
6f80dcb1de
adding unit tests
2017-10-17 13:09:37 +00:00
19e67ea2b0
Enabling links on header and footer on preview
2017-10-11 12:45:07 +00:00
9d93f3ea95
Add a test for image alignment rendering [MAILPOET-1124]
2017-10-09 09:37:31 +03:00
c1e542cb5a
Reschedules past due scheduled queues when reactivating notification
2017-08-28 09:20:17 +02:00
8540e5eea9
Merge pull request #1017 from mailpoet/rerender-newsletter
...
Rerender newsletter [MAILPOET-675]
2017-08-17 16:19:16 +03:00
9117ae1a27
Fixing more bugs. Lists and scheduling options are hidden when editing a newsletter that is being sent
2017-08-15 14:39:02 +00:00
a587b0a966
Links are not re-hashed when re-rendering the same newsletter
2017-08-15 12:55:05 +00:00
49318791fc
Adds hook to modify max post excerpt
2017-08-14 20:55:49 -04:00
7e0c500e4f
Uses WP's date_i18n() to localize date shortcode
2017-08-10 12:46:27 -04:00
40cbefd1f4
Uses WP time vs. system time
2017-08-09 18:59:55 -04:00
fb5d43e975
Adds helper method to translate shortcodes
...
Adds translations to Date shortcode
2017-08-09 18:56:33 -04:00
0865995d21
Does not remove padding from the last element in a column
2017-08-01 09:47:29 +02:00
6de746162e
Update Posts transformer to extract images by splitting the DOM tree
2017-07-28 14:36:12 +03:00
60b3c066a5
Allow rendering blockquote tags
2017-07-28 11:10:57 +03:00
6fb18ad321
Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025]
2017-07-26 18:28:56 +03:00
321393f119
Fix Squiz.Classes.ClassFileName sniffer rule in tests [MAIPOET-1025]
2017-07-26 17:03:43 +03:00
9dd326e7db
Updates class to use newly added validate() method on the model
...
Validates existing queue's rendered newsletter body
Cleans code formatting
2017-07-24 12:49:39 -04:00
0cebcd3965
Add missing brackets to custom field shortcodes [MAILPOET-1013]
2017-07-21 14:40:56 +03:00
213d0e8627
Distinguishes between link TYPE and link CATEGORY NAME
...
Uses $replacement_link variable for clarity
2017-07-17 09:14:11 -04:00
fe9ae392f2
Replaces URL extraction regex with DOM parser
...
Simplifies link replacement logic
Cleans up code
2017-07-14 23:15:08 -04:00
0be872eea9
Fix PHPCompatibility.PHP.EmptyNonVariable rule [MAILPOET-989]
2017-07-07 11:30:16 +03:00
9079d7d4db
Merge pull request #977 from mailpoet/subscription_confirmation_update
...
Prevents repeat subscription confirmation/duplicate welcome notifications [MAILPOET-988]
2017-07-06 22:52:44 +03:00
89da4c9aae
Prevents repeat subscription confirmation
...
Prevents scheduling of duplicate welcome notifications
2017-07-05 19:50:57 -04:00
b1425198b6
Merge pull request #967 from mailpoet/subscription_form_unit_test
...
Adds test for subscription form submission class [MAILPOET-961]
2017-07-04 14:46:26 +03:00
8e46451337
Fixes non static methods called statically (good practice + PHP 7
...
compatibility)
2017-07-03 19:39:11 -04:00
29491dfd3e
Fix active coding standard rule violations in tests [MAILPOET-981]
2017-07-03 16:20:44 +03:00
f89a728c38
Uses predetermined timestamps from which next run date is calculated
2017-06-24 15:59:28 -04:00
5b99e66d8d
Merge pull request #922 from mailpoet/fix-tests-problems
...
Fix tests problems
2017-06-07 10:34:20 -04:00
b80683a9a1
Fix unit tests for PHPUnit v6
...
Codeception from version 2.3 up comes with PHPUnit v6 which changed
__construct behaviour. Our tests have to call parent __constructor in
order to work. The error was:
[PHPUnit\Framework\Exception] array_merge(): Argument #1 is not an array
2017-06-07 11:32:33 +01:00
49673fabbd
Does not display logo when MSS is active or preview is enabled
...
Adds additional unit tests and optimizes existing
2017-06-07 12:30:42 +03:00
1c1a210542
Adds MailPoet logo to newsletters in the free version
2017-06-07 12:30:41 +03:00
cd5f3165c7
Uses queue ID when fetching newsletter link by hash
2017-05-14 22:02:19 -04:00
abfebc8643
Merge pull request #880 from mailpoet/subscriber_shortcode_fix
...
Returns shortcode's default value when subscriber's first/last name is blank [MAILPOET-899]
2017-05-01 11:28:54 +03:00
40a3487d3d
Remove a redundant condition, fix a typo in a test name [MAILPOET-880]
2017-05-01 11:20:33 +03:00
4e76286b44
Returns shortcode's default value when subscriber's first or last name is empty
2017-04-28 09:49:00 -04:00
586470e8f9
Updates unit tests
2017-04-26 17:58:45 -04:00
0cdb426712
Fix ALC filtering for custom taxonomies and post types
2017-04-10 19:23:19 +03:00
37fcd5699b
Fix last <br/> removal cutting off text when rendering a text block [MAILPOET-856]
2017-04-06 10:07:11 +03:00
835f25cc82
Fixes unit test that fails on the last Saturday of the month
2017-03-25 02:24:38 -04:00
ff36833270
Add a hook for reinstalling Premium [PREMIUM-2]
2017-03-23 15:27:15 +03:00