Handling of dormant shortcodes is inelegant
|Reported by:||markjaquith||Owned by:|
Our handling of dormant shortcodes is inelegant. They spit out the raw shortcode. Better, would be for use to keep track of a historical record of which shortcodes have been registered, and if it's one of those "dormant" shortcodes (used to be registered, but no longer is), have it gracefully degrade, not show the shortcode, and return its contents if it's a wrapper shortcode.
This would require an option to track the shortcodes that have been used. Whenever a new one comes around, we add it to the array.
Eventually, we could deprecate the use of non-registered shortcodes, get rid of this solution, and simplify our regex to be generic (which would scale better).
Change History (23)
18 months ago
- Keywords roadmap added; has-patch removed
- Milestone changed from Awaiting Review to Future Release
17 months ago
- Keywords close added; roadmap removed
- Milestone changed from Future Release to Awaiting Review