Opened 7 years ago
Last modified 6 years ago
#43171 accepted defect (bug)
Image Title Not Carrying through on Insert
Reported by: | carnellm | Owned by: | audrasjb |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | |
Focuses: | Cc: |
Description
If I go into a post, page, or widget and insert and image the image title does not come through on that original insert. This happens with either a new uploaded image or one from the gallery. I can set the alt-text, caption, title, and such, but when it is inserted the title is the only field not to come through. It is blank. I can then go in and edit the image and fix the title and it takes. If I am editing an image in the image widget, the same thing happens. And if it is an existing image widget that I am just changing the image in, it will actually leave the title from the previous image - not blank it out or use the newly specified title. I have verified this with new images, edited images, uploaded images, images from the media library, different image formats, etc... And verified on multiple sites, on different hosts, with any and or all plug-ins deactivated or activated. Oh, and different themes. Everything from complex magazine theme to standard WP TwentyTen theme and stuff in between. Can give access to sites where this happens. Actually, I have found no sites where it actually works correctly.
Attachments (2)
Change History (5)
#1
@
7 years ago
- Component changed from Media to Widgets
- Version changed from 4.9 to 4.8
Thanks @carnellm for your report and welcome to Trac. I think the first part is not a bug but the interface could be a bit confusing. The "Title" field when inserting an image is not meant to be used for the title attribute of the image. It's just the title of the attachment, used internally in the admin and also in the attachment page.
Instead, seems to me the second part is a bug. When I replace an image in an Image Widget, the previous alt attribute gets removed but the previous title attribute stays there.. It should be removed. Actually, users have the ability to add or edit the title attribute only when editing an image.
/cc @westonruter
On Editing After Insert