Opened 10 years ago
Closed 10 years ago
#27691 closed defect (bug) (fixed)
Gallery wpview throws a javascript error if an image attachment lacks metadata
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.9 | Priority: | high |
Severity: | normal | Version: | 3.9 |
Component: | Editor | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description (last modified by )
If for some reason an image used in a gallery doesn't have metadata (e.g. post meta data stored under _wp_attachment_metadata
) the following javascript error will be thrown:
Uncaught TypeError: Cannot read property 'thumbnail' of undefined
Attachments (2)
Change History (7)
#3
@
10 years ago
27691-02.patch also properly escapes the src
attributes.
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
27961-01.patch fixes this issue by falling back to using the attachment url.