From 132025c51d0d033bca82c25d5b1b5b8bbee686bc Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 9 May 2022 17:02:50 +0300 Subject: [PATCH] feat(shortcodes): upd `raw` shortcode --- src/flextype/core/Parsers/Shortcodes/RawShortcode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flextype/core/Parsers/Shortcodes/RawShortcode.php b/src/flextype/core/Parsers/Shortcodes/RawShortcode.php index ad518b32..ee880906 100644 --- a/src/flextype/core/Parsers/Shortcodes/RawShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/RawShortcode.php @@ -24,6 +24,10 @@ use function parsers; // Shortcode: [raw] shortcodes to escape [/raw] parsers()->shortcodes()->addHandler('raw', static function (ShortcodeInterface $s) { + if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.raw.enabled')) { + return ''; + } + return $s->getContent(); });