WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#22906 closed enhancement

Does not resize image with caption for a responsive design. — at Initial Version

Reported by: maxwell.shim Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.5
Component: Media Keywords:
Focuses: Cc:

Description

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">'

Change History (0)

Note: See TracTickets for help on using tickets.