[wp-trac] [WordPress Trac] #18311: Support HTML in image captions.

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 11 09:05:29 UTC 2012


#18311: Support HTML in image captions.
--------------------------------------+-----------------------
 Reporter:  prettyboymp               |       Owner:  sushkov
     Type:  task (blessed)            |      Status:  assigned
 Priority:  normal                    |   Milestone:  3.4
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  ux-feedback dev-feedback  |
--------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:33 jeremyclarke]:
 > Asking users to "only use single quotes" strikes me as unlikely to be
 successful...

 You mean when the users type the whole caption shortcode in the HTML
 editor by hand, including HTML tags in the `caption="..."`? Doubt it
 anybody would do that. It's much easier to insert a shortcode then edit it
 in which case the user would simply follow the already set format (double
 quotes for shortcode attribs, single quotes for HTML in the
 `caption="..."`). Keep in mind the people that use the HTML editor "know
 what they are doing".

 The alternative is to change the format of the shortcode. This would
 likely break some plugins that manipulate it directly in the DB or do
 other hacky things with it. Of course we can keep the
 `'img_caption_shortcode'` filter exactly the same but plugins that are
 "doing_it_wrong" and not using it would probably break.

 > ...if we could stop the Visual editor from destroying such links
 (currently any links using single-quotes, as well as any subsequent text
 in the caption is removed when you switch to visual).

 See the patch.

 > It's great to hear you're also working on the wpeditimage plugin. I'm
 eager to try any patches you have that affect this situation.

 Yes, captions in the visual editor are handled there.

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


More information about the wp-trac mailing list