[wp-trac] [WordPress Trac] #58349: TypeError in wp_check_filetype_and_ext hook: bool values into $mimes argument can be passed
WordPress Trac
noreply at wordpress.org
Tue May 30 19:45:12 UTC 2023
#58349: TypeError in wp_check_filetype_and_ext hook: bool values into $mimes
argument can be passed
--------------------------------------+--------------------------
Reporter: platonkristinin | Owner: johnbillion
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"55872" 55872]:
{{{
#!CommitTicketReference repository="" revision="55872"
Media: Correct the fallback value passed to the `$mimes` parameter of
`wp_check_filetype_and_ext()` from `_wp_handle_upload()`, and update
corresponding documentation.
Previously when the `mimes` element was not specified in the overrides
array passed to `_wp_handle_upload()` it resulted in boolean false being
passed to this parameter, which is incorrect. The fallback value should be
`null`.
Props platonkristinin, pkbhatt
Fixes #58349
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58349#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list