-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpl/tplimpl: Prevent overloading of embedded comment shortcode
Creates a mechanism to prevent loading of user space templates that match a list of reserved paths. The primary intent is to prevent users from overloading specific embedded templates. For example, with the string "shortcodes/comment" in the list of reserved paths, we do not load any of the following from user space: - layouts/shortcodes/comment.html - layouts/shortcodes/comment.html.html - layouts/shortcodes/comment.en.html.html - layouts/shortcodes/comment.json" - layouts/shortcodes/comment.json.json" - layouts/shortcodes/comment.en.json.json"
- Loading branch information
Showing
5 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- /* DO NOT REMOVE THIS SHORTCODE FROM THE CODE BASE. */ -}} | ||
{{- /* DOING SO WOULD EXPOSE HIDDEN INFORMATION. */ -}} | ||
{{- $noop := .Inner -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters