Fix other minor type issues in libs
[MAILPOET-3926]
This commit is contained in:
committed by
Veljko V
parent
82f666c488
commit
d13f63b3e2
@ -60,6 +60,10 @@ class PostContentManager {
|
||||
$tagsNotBeingStripped = array_merge($tagsNotBeingStripped, ['<figure>', '<img>', '<h1>', '<h2>', '<h3>']);
|
||||
}
|
||||
|
||||
if (is_array($content)) {
|
||||
$content = implode(' ', $content);
|
||||
}
|
||||
|
||||
$content = strip_tags($content, implode('', $tagsNotBeingStripped));
|
||||
if ($withPostClass) {
|
||||
$content = str_replace('<p', '<p class="' . self::WP_POST_CLASS . '"', WPFunctions::get()->wpautop($content));
|
||||
|
Reference in New Issue
Block a user