Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#27537 closed defect (bug) (fixed)

Image Details modal breaks if the image references an invalid attachment

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

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 12 years ago.

Download all attachments as: .zip

Change History (3)

#1 @gcorne
12 years ago

27537-01.patch should fix this issue.

@gcorne
12 years ago

#2 @nacin
12 years ago

  • Owner set to nacin
  • Resolutionfixed
  • Status newclosed

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.