[wp-trac] [WordPress Trac] #9264: Self closing shortcodes
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 17 20:42:35 UTC 2010
#9264: Self closing shortcodes
--------------------------+-------------------------------------------------
Reporter: rb-cohen | Owner: westi
Type: defect (bug) | Status: accepted
Priority: high | Milestone: 3.0
Component: Shortcodes | Version: 2.7.1
Severity: major | Keywords: needs-patch early
--------------------------+-------------------------------------------------
Changes (by shidouhikari):
* cc: shidouhikari (added)
* priority: normal => high
* severity: normal => major
Comment:
Shortcode parsing also fails for
{{{
[test id="1"][/test]
}}}
It doesn't detect the closing [/test] and keeps looking for it.
That's even worse when a shortcode uses $content but also accepts it empty
so that default value is used.
The solution I found in my plugin was use
{{{
[test id="1"]{{empty}}[/test]
}}}
Ugly but at least worked.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9264#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list