[wp-trac] [WordPress Trac] #18558: Handling of dormant shortcodes is inelegant
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 31 20:25:07 UTC 2011
#18558: Handling of dormant shortcodes is inelegant
-------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
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).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18558>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list