[wp-trac] [WordPress Trac] #18311: Caption shortcode doesn't support markup in the caption.

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 21 23:52:10 UTC 2011


#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 kurtpayne):

 * cc: kpayne@… (added)
 * keywords:  needs-patch => needs-patch has-patch


Comment:

 Perhaps something like [[attachment:18311.2.patch]] would work?

 This allows simple HTML (currently `strong`, `em`, and `a`) in the
 `[caption]` shortcode.  It has to be turned on via the `render_html=true`
 attribute.  It works with no modification to any other code, contained
 completely within `img_caption_shortcode`.  It doesn't matter what encoded
 entities TinyMCE throws at it because it will decode it, keep good html,
 then re-encode it to sanitize bad html.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18311#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list