WordPress.org

Make WordPress Core

#22640 closed defect (bug) (fixed)

alt changes not preserved when inserting an image into post from Add Media

Reported by: ryan Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: major Version: 3.5
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description (last modified by ryan)

To reproduce:

  • Add Media
  • Media Library
  • Select an image
  • Change Alt Text
  • Insert into Post
  • Switch editor to Text
  • Note that alt is empty. alt=""

Attachments (1)

22640.diff (561 bytes) - added by nacin 17 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 ryan17 months ago

  • Description modified (diff)

comment:2 ryan17 months ago

  • Description modified (diff)

comment:3 ryan17 months ago

If you visit the media modal again and select the image the altered alt text is preserved, so this might strictly be an insertion error.

nacin17 months ago

comment:4 nacin17 months ago

  • Keywords has-patch commit added

Boom.

comment:5 koopersmith17 months ago

Patch works beautifully.

comment:6 nacin17 months ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 22927:

Send the alt attribute when sending attachments to the editor. fixes #22640.

Note: See TracTickets for help on using tickets.