[wp-trac] [WordPress Trac] #31053: HTML5 caption disregards img_caption_shortcode_width filter
WordPress Trac
noreply at wordpress.org
Mon Jan 19 15:03:16 UTC 2015
#31053: HTML5 caption disregards img_caption_shortcode_width filter
--------------------------+-----------------------------
Reporter: trysmudford | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In /wp-includes/media.php in the '''img_caption_shortcode''' function, the
'''img_caption_shortcode_width''' filter is applied after the HTML5
caption has been returned, thus not setting the developer specified width.
I propose lines 875 to 879 should be moved above the HTML5 conditional on
line 853 and it should only apply the $style variable, not hard-code the
style attribute onto the element itself.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31053>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list