[wp-trac] [WordPress Trac] #23517: Shortcode: if last parameter ends with '/', it is mistaken for self-closing shortcode closure
WordPress Trac
noreply at wordpress.org
Tue Feb 19 13:23:32 UTC 2013
#23517: Shortcode: if last parameter ends with '/', it is mistaken for self-closing
shortcode closure
--------------------------+------------------------------
Reporter: sergem | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> In example:
>
> [shortcode urlparam=http://somesite/path/]content text[/shortcode]
>
> "[shortcode urlparam=http://somesite/path/]"
>
> is interpreted as self closing:
>
> [shortcode/] with urlparam="http://somesite/path"
>
> All examples in http://codex.wordpress.org/Shortcode_API include
> whitespace before '/]'
>
> This prevents implementation of bbcode parser for people to paste flickr
> photo snippets.
New description:
In example:
{{{
[shortcode urlparam=http://somesite/path/]content text[/shortcode]
}}}
{{{
"[shortcode urlparam=http://somesite/path/]"
}}}
is interpreted as self closing:
{{{
[shortcode/] with urlparam="http://somesite/path"
}}}
All examples in http://codex.wordpress.org/Shortcode_API include
whitespace before `'/]'`
This prevents implementation of bbcode parser for people to paste flickr
photo snippets.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23517#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list