[wp-trac] [WordPress Trac] #62347: wp_get_image_mime does not check that the file exists

WordPress Trac noreply at wordpress.org
Tue Nov 5 10:01:56 UTC 2024


#62347: wp_get_image_mime does not check that the file exists
--------------------------+-----------------------------
 Reporter:  Iulia Cazan   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `wp_get_image_mime` function does not check the file exists before
 calling `file_get_contents,` which produces warnings that fill the error
 log.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62347>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list