#42604 closed defect (bug) (fixed)
Problem: alignment of image with caption
| Reported by: | slilley | Owned by: | obenland |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Bundled Theme | Version: | 4.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
9 years ago
- Component General → 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
@
9 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
@
9 years ago
- Component Bundled Theme → Media
- Milestone Awaiting Review → 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
@
9 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-textcause 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)
#8
@
9 years ago
- Resolution fixed
- Status closed → reopened
I still see the same problem on my end. Not fixed yet.
#9
follow-up:
↓ 13
@
9 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
@
9 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.
9 years ago
#13
in reply to: ↑ 9
@
9 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
@
9 years ago
- Resolution → fixed
- Status reopened → 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.
8 years ago
#16
@
8 years ago
- Milestone 4.9.3 → 5.0
Moving to 5.0, as bundled themes are generally updated with major releases.
#17
@
8 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.
8 years ago
#20
@
8 years ago
- Milestone 4.9.5 → 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-captionstill needs amax-width, as full-sized images with a caption break the layout now, see 42604.full-size.PNG.editor-style.cssshould be updated as well.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
display, pre-WP4.9