[wp-trac] [WordPress Trac] #12760: Escaping shortcode conditionally
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 2 13:03:16 UTC 2010
#12760: Escaping shortcode conditionally
--------------------------+-------------------------------------------------
Reporter: pavelevap | Owner: markjaquith
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.0
Component: General | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by kunalb):
* cc: kunalb (added)
* keywords: => has-patch
Comment:
I've attached a patch that takes care of any shortcodes of the form
{{{[[foobar]]}}} left over after running all registered shortcode
functions: I avoided changing the get_shortcode_regex function to allow
for general tags because of the way the embed shortcode is handled
(calling do_shortcode twice, once with only the embed as the shortcode to
handle, and once after that).
Getting {{{[shortcode]Text[/shortcode]}}} to display required an escape of
the form {{{[[shortcode]Text[/shortcode]]}}} ; so non-shortcodes of this
form are reduced accordingly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12760#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list