[wp-trac] [WordPress Trac] #41148: Test for ticket 39875 can throw	PHP error
    WordPress Trac 
    noreply at wordpress.org
       
    Sat Jun 24 07:53:43 UTC 2017
    
    
  
#41148: Test for ticket 39875 can throw PHP error
--------------------------+-----------------------------
 Reporter:  schlessera    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The test that was written for #39875 can throw a PHP error under certain
 circumstances: `Undefined index: sizes`.
 The problem arises when then `wp_generate_attachment_metadata()` call does
 not return the proper array data. As the preview path generation directly
 access a specific array index, this throws a PHP error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41148>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list