[wp-trac] [WordPress Trac] #19639: Enhancement: request: filter support before shortcodes are parsed or convert " into "
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 21 23:43:57 UTC 2011
#19639: Enhancement: request: filter support before shortcodes are parsed or
convert " into "
--------------------------+------------------------------
Reporter: archon810 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.3
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by archon810):
Replying to [comment:4 dd32]:
> Can you post an example of the problem you're seeing? ie. The code in
WLW and the code that you then see in the Visual Editor when editing that
post?
>
> This partially sounds like something that might need to be fixed in the
shortcode parsing rather than a easier filter being added for you to fix
it.
Sure thing.
{{{
[test foo="bar" alpha='beta']
}}}
becomes this in source:
{{{
<p>[test foo="bar" alpha='beta']</p>
}}}
I think if the parameter data is decode_entities'ed, it should be good to
go, but it may be undesirable in case the data you're passing is supposed
to be encoded. In that case, maybe treat it as a special case and be extra
careful to just strip/decode these off the beginning and end only.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19639#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list