[wp-trac] [WordPress Trac] #60003: PHP error in wp_match_mime_types()
WordPress Trac
noreply at wordpress.org
Mon Dec 4 19:12:52 UTC 2023
#60003: PHP error in wp_match_mime_types()
-------------------------------+------------------------------
Reporter: argaliano15 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by sabernhardt):
The cause of an error or warning is always important. Without an example
of //how// the code fails, how can developers know that the hardening fix
is good enough? It might need to check precisely whether the type is
either a string or an array. I also do not know what the
`wp_match_mime_types()` function should return if the second parameter is
not an acceptable type.
I did not close this ticket (or even suggest closing it). If the
problematic code is in a plugin, it likely needs to be reported and fixed
there so the plugin operates as intended. If something in Core causes the
error, the Core team needs to know where to find it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60003#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list