[wp-trac] [WordPress Trac] #22906: Does not resize image with caption for a responsive design.
WordPress Trac
noreply at wordpress.org
Thu Dec 13 02:59:40 UTC 2012
#22906: Does not resize image with caption for a responsive design.
-----------------------------+----------------------------
Reporter: maxwell.shim | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Graphic Design
Version: 3.5 | Severity: trivial
Keywords: has-patch |
-----------------------------+----------------------------
Problem 1 : Does not resize image with caption for a responsive design.
Returns the fixed width of the image function img_caption_shortcode()
So does not change the image width.
I think change style max-width.
return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style
="max-width: ' . (10 + (int) $width) . 'px">'
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22906>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list