Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27537 closed defect (bug) (fixed)

Image Details modal breaks if the image references an invalid attachment

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


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

Download all attachments as: .zip

Change History (3)

#1 @gcorne
10 years ago

27537-01.patch should fix this issue.

10 years ago

#2 @nacin
10 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.