[wp-trac] [WordPress Trac] #27691: Gallery wpview throws a javascript error if an image attachment lacks metadata

WordPress Trac noreply at wordpress.org
Mon Apr 7 05:24:01 UTC 2014


#27691: Gallery wpview throws a javascript error if an image attachment lacks
metadata
--------------------------+-------------------------
 Reporter:  gcorne        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.9
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Description changed by gcorne:

Old description:

> 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
> }}}

New description:

 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
 }}}

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27691#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list