Opened 12 years ago
Closed 12 years ago
#27691 closed defect (bug) (fixed)
Gallery wpview throws a javascript error if an image attachment lacks metadata
| Reported by: | gcorne | Owned by: | nacin |
|---|---|---|---|
| Priority: | high | Milestone: | 3.9 |
| Component: | Editor | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
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
@
12 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.
12 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
27961-01.patch fixes this issue by falling back to using the attachment url.