[wp-trac] [WordPress Trac] #26642: [caption] is 10px too wide

WordPress Trac noreply at wordpress.org
Thu Mar 20 01:06:45 UTC 2014


#26642: [caption] is 10px too wide
-------------------------+-----------------------
 Reporter:  Looimaster   |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.9
Component:  Media        |     Version:  3.8
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------

Comment (by obenland):

 In [attachment:26642.9.diff]:

 We still use an inline style in the HTML5 version to encourage captions to
 break. The width is not filtered since the original purpose of the
 existing `img_caption_shortcode_width` filter was to give theme authors a
 way to circumvent the added 10 pixels.

 On the editor side we added a flag to signal html5 caption support. Based
 on that flag the editor now adds those 10px (or not), and gives captions a
 general 4px padding (or not).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26642#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list