Fix image fullwidth toggle [MAILPOET-1365]

Prevent WordPress $content_width global to override
mailpoet_image_size when calling wp_get_attachment_image_src()
in ACL generated posts.
This commit is contained in:
Fred. P
2018-05-30 11:37:50 +02:00
parent b7e33aa997
commit ac47866295
6 changed files with 92 additions and 9 deletions

View File

@@ -213,7 +213,7 @@ class Initializer {
}
function setupImages() {
add_image_size('mailpoet_newsletter_max', 1320);
add_image_size('mailpoet_newsletter_max', Env::NEWSLETTER_CONTENT_WIDTH);
}
function setupChangelog() {
@@ -301,4 +301,4 @@ class Initializer {
}
return WPNotice::displayError($exception);
}
}
}