#45707 closed task (blessed) (fixed)
Add parameter $real_mime to wp_check_filetype_and_ext
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | has-patch |
Focuses: | Cc: |
Description
In some cases, I need the parameter $real_mime
in hook wp_check_filetype_and_ext. I don't see any reasons to not pass it there.
<?php return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' ), $file, $filename, $mimes, $real_mime );
Attachments (1)
Change History (16)
#1
@
6 years ago
- Component changed from General to Upload
- Milestone changed from Awaiting Review to 5.1
This ticket was mentioned in Slack in #core-media by desrosj. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
6 years ago
#12
@
6 years ago
- Keywords needs-dev-note added
@joemcgill, @desrosj: As this is the workaround for the #40175, it'd be good to have a dev note explaining how to use it.
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
Thanks @Tkama,
I think something like this could be really helpful for people trying to get around issues like #45615. I'm expecting to make some changes to the way this works in 5.1 so let's include this ticket in the process.
Cheers!