#45707 closed task (blessed) (fixed)
Add parameter $real_mime to wp_check_filetype_and_ext
| Reported by: | Tkama | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Upload | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
This ticket was mentioned in Slack in #core-media by desrosj. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
8 years ago
#12
@
8 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.
8 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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!