Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add processShortcodesRaw($str) using raw_handlers #104

Merged
merged 1 commit into from
May 21, 2021
Merged

Add processShortcodesRaw($str) using raw_handlers #104

merged 1 commit into from
May 21, 2021

Conversation

pamtbaau
Copy link
Contributor

Method ShortcodeManager::processContent() has a counterpart to process shortcodes using raw handlers. Method ShortcodeManager::processShortcodes($str) does not have a counterpart to process shortcodes strings using raw handlers.

I missed the ability to run a shortcode string using raw handlers during Unit testing of shortcodes.

This PR adds the missing method ShortodeManager::processShortcodesRaw($str) which processes shortcodes using the raw handlers.

Not sure if it should be processShortcodesRaw($str) or processRawShortcodes($str) though...

@pamtbaau pamtbaau changed the title Add processShortcodesRaw() using raw_handlers Add processShortcodesRaw($str) using raw_handlers May 19, 2021
@rhukster rhukster merged commit cba270f into getgrav:develop May 21, 2021
@rhukster
Copy link
Member

Looks good.. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants