[wp-trac] [WordPress Trac] #23103: Image caption shortcode without a width is lost
WordPress Trac
noreply at wordpress.org
Wed Mar 5 12:01:50 UTC 2014
#23103: Image caption shortcode without a width is lost
-------------------------+-----------------------------
Reporter: mark-k | Owner:
Type: enhancement | Status: reopened
Priority: low | Milestone: Future Release
Component: Editor | Version: 3.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------------
Comment (by Clorith):
Replying to [comment:3 azaozz]:
> Yes, the captions require the width attribute. We probably can recreate
the caption width from the image tag `width`, but don't see why the width
was removed from the caption in the first place.
I believe the width is removed in regard to responsive designs. Both the
height and width attribute in both images inserted and the caption
shortcode makes this a challenge.
Couldn't we set the width of it to the captioned image wrapper, and make
it filterable?
And with image sizes, are the width and height attributes required when
Full Size is selected? I can see the use for Thumbnail, Medium etc, but it
just seems redundant on the full one?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23103#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list