Skip to content
Snippets Groups Projects
Commit b7dc078b authored by Marco's avatar Marco
Browse files

Issue #3433170: Nothing injected when paragraphs have attributes

parent fa132676
No related merge requests found
LICENSE.txt 100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -119,7 +119,7 @@ function body_inject_adv_process_condition($body, $settings) {
// PARAGRAPHS
// Break up the body field string into an array of paragraphs and count them.
$array_explode = explode("<p>", $body);
$array_explode = explode("<p", $body);
$body_paragraphs_count = count($array_explode);
// CHARACTERS
......@@ -242,7 +242,7 @@ function body_inject_profiles() {
function body_inject_adv_node($actions, $body) {
// Break up the body field string into an array of paragraphs.
$array_body_paragraphs = explode("<p>", $body);
$array_body_paragraphs = explode("<p", $body);
foreach ($actions as $action_data) {
// load the block content that should be inserted
......@@ -314,7 +314,7 @@ function body_inject_adv_node($actions, $body) {
}
// Re-create the body field string with the regions injected.
return implode("<p>", $array_body_paragraphs);
return implode("<p", $array_body_paragraphs);
}
/**
......
composer.json 100644 → 100755
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment