[wp-trac] [WordPress Trac] #60003: PHP error in wp_match_mime_types()

WordPress Trac noreply at wordpress.org
Wed Dec 13 20:12:31 UTC 2023


#60003: PHP error in wp_match_mime_types()
-------------------------------+------------------------------
 Reporter:  argaliano15        |       Owner:  pbearne
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by pbearne):

 Hi All,

 Looking at this code we can fix this by returning early if either the
 parms are empty
 this saves compute so I will fix it with this

 Paul

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


More information about the wp-trac mailing list