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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 20:17:07 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:38 nacin]:
 > We're screwed there either way... So, we need to figure out how to be
 compatible here.

 Not exactly. The current patch is backwards compatible. All it does is to
 force the quotes in the newly added HTML inside captions to be single.
 This works well and doesn't require any changes to the shortcode format or
 the handling/parsing of the shortcode in the back-end, including plugins.
 Furthermore is accepts both quotes formats when editing a post, so even if
 a plugin has added a caption shortcode using single quotes for the
 attributes (default is to use double quotes), it would handle it properly.

 Agree with @sushkov that now would be a good time to tweak/improve the
 captions shortcode but don't see any way we can do that and keep it 100%
 backwards compatible.

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


More information about the wp-trac mailing list