Opened 6 months ago

Closed 6 months ago

#22640 closed defect (bug) (fixed)

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

Reported by: ryan Owned by: nacin
Priority: normal Milestone: 3.5
Component: Media Version: 3.5
Severity: major Keywords: has-patch commit
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 6 months ago.

Download all attachments as: .zip

Change History (7)

  • Description modified (diff)
  • Description modified (diff)

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.

nacin6 months ago

  • Keywords has-patch commit added

Boom.

Patch works beautifully.

  • 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.