#42604 closed defect (bug) (fixed)
Problem: alignment of image with caption
Reported by: | slilley | Owned by: | obenland |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Bundled Theme | Keywords: | |
Focuses: | Cc: |
Description
Using Twenty-Ten them, if you put an image in a post, give it a caption and align it "none", the image should remain default-left aligned, with a small frame, and no text wrap.
After WP 4.9, that same image will now appear centered in the post, with a frame (and caption) that extends the full width of the post.
Attachments (5)
Change History (28)
#1
follow-up:
↓ 3
@
7 years ago
- Component changed from General to Themes
I think I found the issue in the theme, but I'm just wondering if the Twenty Ten theme is still being maintained?
#3
in reply to:
↑ 1
@
7 years ago
Replying to hardeepasrani:
I think I found the issue in the theme, but I'm just wondering if the Twenty Ten theme is still being maintained?
Yes, Twenty Ten theme has been updated.
#4
follow-up:
↓ 5
@
7 years ago
- Component changed from Bundled Theme to Media
- Milestone changed from Awaiting Review to 4.9.2
Introduced in r41724
The use of max-width on the container lets the wp-caption-text
cause it to overflow for some reason, providing a max-width that mimics the parents max width might be an idea (so far only observed on themes that do not have HTML5 support, so it might be something there)
#5
in reply to:
↑ 4
@
7 years ago
Even if the caption is short (i.e. narrower than the image), the shaded frame still goes wide.
Replying to Clorith:
Introduced in r41724
The use of max-width on the container lets the
wp-caption-text
cause it to overflow for some reason, providing a max-width that mimics the parents max width might be an idea (so far only observed on themes that do not have HTML5 support, so it might be something there)
#6
@
7 years ago
- Component changed from Media to Bundled Theme
- Owner set to obenland
- Status changed from new to accepted
#8
@
7 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
I still see the same problem on my end. Not fixed yet.
#9
follow-up:
↓ 13
@
7 years ago
@slilley Do you have a public test site that I can access with the fix not working. Does it still occur for anyone else?
#10
@
7 years ago
Patch is good on my end.
Just a note for those still experiencing this issue, this is prepared for version 4.9.2, which has not been released yet, so you won't see any change unless you are using the beta tester plugin or any other method of testing the new release.
This ticket was mentioned in Slack in #core by desrosj. View the logs.
7 years ago
#13
in reply to:
↑ 9
@
7 years ago
Replying to obenland:
@slilley Do you have a public test site that I can access with the fix not working. Does it still occur for anyone else?
Sure — here's an example on a page from my site:
http://recklesslistening.com/2010/03/26/greeting-card-emergency/
I'm running WP 4.9.2, and using a child theme of Twenty-Ten 2.4. And I still get the problem even when I switch from my child theme into straight Twenty-Ten 2.4.
#14
@
7 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Yeah, your version of Twenty Ten doesn't have [42386] applied, it still forcibly sets the caption width to the full content width. Once that's updated, it'll be fixed.
This ticket was mentioned in Slack in #core by clorith. View the logs.
7 years ago
#16
@
7 years ago
- Milestone changed from 4.9.3 to 5.0
Moving to 5.0, as bundled themes are generally updated with major releases.
#17
@
7 years ago
Is there a fix for this yet? It's still causing the captions to be "justified". See at http://rogerannis.com/austerity-militaristic-government-budget-canada/.
This ticket was mentioned in Slack in #core by sergey. View the logs.
7 years ago
#19
@
7 years ago
- Milestone changed from 5.0 to 4.9.5
- Resolution fixed deleted
- Status changed from closed to reopened
#20
@
7 years ago
- Milestone changed from 4.9.5 to 4.9.6
Looks like this needs some more work:
.wp-caption img { max-width: 622px; /* caption width - 10px */ }
is a remnant of the line removed in [42386]..wp-caption
still needs amax-width
, as full-sized images with a caption break the layout now, see 42604.full-size.PNG.editor-style.css
should be updated as well.
display, pre-WP4.9