[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:21:39 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        |   Keywords:  has-patch
  Focuses:  javascript    |
--------------------------+-----------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list