[wp-trac] [WordPress Trac] #50384: @getimagesize bug for some images: Returns empty

WordPress Trac noreply at wordpress.org
Wed Jun 22 14:16:11 UTC 2022


#50384: @getimagesize bug for some images: Returns empty
-------------------------------+------------------------------
 Reporter:  samwebdev          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  5.4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by antpb):

 * keywords:   => reporter-feedback


Comment:

 hi @samwebdev ! Thanks for this report. Looking at the function today I
 notice we are using `wp_getimagesize` which better accounts for edge cases
 like these. Is it possible for you to test this again using the latest
 WordPress to ensure this is still happening?

 Here's a link to the latest version of the code:
 https://github.com/WordPress/wordpress-
 develop/blob/a14324ca3af4eeff69406d3e59719a33f055f07e/src/wp-
 admin/includes/image.php#L237

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


More information about the wp-trac mailing list