[wp-trac] [WordPress Trac] #18311: Caption shortcode doesn't support markup in the caption.
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 16 12:02:09 UTC 2012
#18311: Caption shortcode doesn't support markup in the caption.
-----------------------------------+-----------------------------
Reporter: prettyboymp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: TinyMCE | Version:
Severity: normal | Resolution:
Keywords: needs-patch has-patch |
-----------------------------------+-----------------------------
Changes (by sushkov):
* cc: sushkov (added)
Comment:
@jeremyclarke has a point when says that image caption content should go
between [caption] shortcode tags.
A fix could be achieved with minimum backcompat impact by separating the
[caption] shortcode from `img` tag. To explain, we could move the
[caption] before (makes more sense to me, or after) the `img` tag, so when
the parser meets it, the context is not lost.
On the javascript side, that would mean little changes too.
Example:
`[caption stuff=""]My awesome caption[/caption]<img src="" alt=""/>`
The good part here, is that basically we do no make changes in the
shortcode api (no overhead like mustaches `{{}}`) we just change the
location of it inside the `post_content`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18311#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list