[wp-trac] [WordPress Trac] #31053: HTML5 caption disregards img_caption_shortcode_width filter

WordPress Trac noreply at wordpress.org
Fri Jun 26 15:07:18 UTC 2015


#31053: HTML5 caption disregards img_caption_shortcode_width filter
------------------------------------+------------------------------
 Reporter:  trysmudford             |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Media                   |     Version:  4.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------
Changes (by joemcgill):

 * keywords:   => has-patch dev-feedback


Comment:

 I agree, the current behavior is less than ideal. Currently, if someone
 wants to use the HTML5 markup for image captions and filter out the inline
 style attribute, they would have to hook in early on at the
 `img_caption_shortcode` filter and recreate the HTML wrapper themselves.
 I've added a patch that would respect the removal of the extra 10px from
 the caption width from HTML5 captions, while still allowing the
 `img_caption_shortcode_width` filter to apply.

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


More information about the wp-trac mailing list