← All changes
|
app/Hooks/Handlers/BlockEditors/CustomerProfileBlockEditor.php
+4
-4
1.3.21
→
1.6.6
View file →
| @@ -73,10 +73,10 @@ | ||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $allColorStrings = implode(', ', $colorStrings); |
| 76 | 76 | |
| 77 | - return "[" . CustomerProfileHandler::SHORT_CODE . | |
| 78 | - " section_titles='{$jsonTitles}'" . | |
| 79 | - " colors='{$allColorStrings}'" . | |
| 80 | - " ]"; | |
| 77 | + return CustomerProfileHandler::make([ | |
| 78 | + 'section_titles' => $jsonTitles, | |
| 79 | + 'colors' => $allColorStrings, | |
| 80 | + ])->renderShortcode($block); | |
| 81 | 81 | } |
| 82 | 82 | } |