- Joins bulk and individual processing into one method
- Refactors code as per code review comments
This commit is contained in:
@ -10,6 +10,7 @@ class Renderer {
|
||||
public $CSS_inliner;
|
||||
public $newsletter;
|
||||
const NEWSLETTER_TEMPLATE = 'Template.html';
|
||||
const POST_PROCESS_FILTER = 'mailpoet_rendering_post_process';
|
||||
|
||||
function __construct(array $newsletter) {
|
||||
$this->newsletter = $newsletter;
|
||||
@ -102,7 +103,7 @@ class Renderer {
|
||||
str_replace('&', '&', $template->html())
|
||||
);
|
||||
$template = apply_filters(
|
||||
'mailpoet_rendering_post_process',
|
||||
self::POST_PROCESS_FILTER,
|
||||
$DOM->__toString()
|
||||
);
|
||||
return $template;
|
||||
|
Reference in New Issue
Block a user