WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#27537 closed defect (bug) (fixed)

Image Details modal breaks if the image references an invalid attachment

Reported by: gcorne Owned by: nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords: has-patch
Focuses: javascript Cc:

Description

If for example a user copies the image markup from another WordPress blog into a post or changes the markup so that the wp-image-### class points to an invalid attachment, the details modal will be blank.

Attachments (1)

27537-01.patch (898 bytes) - added by gcorne 6 years ago.

Download all attachments as: .zip

Change History (3)

#1 @gcorne
6 years ago

27537-01.patch should fix this issue.

@gcorne
6 years ago

#2 @nacin
6 years ago

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

In 27756:

Properly render the image details modal when the image references an invalid attachment.

props gcorne.
fixes #27537.

Note: See TracTickets for help on using tickets.