[wp-trac] [WordPress Trac] #45707: Add parameter $real_mime to wp_check_filetype_and_ext
WordPress Trac
noreply at wordpress.org
Wed Dec 19 15:02:09 UTC 2018
#45707: Add parameter $real_mime to wp_check_filetype_and_ext
-------------------------+-----------------------------
Reporter: Tkama | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.0.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
In some cases, I need the parameter `$real_mime` in hook [https://wp-
kama.ru/filecode/wp-includes/functions.php#L2413
wp_check_filetype_and_ext]. I don't see any reasons to not pass it there.
{{{#!php
<?php
return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type',
'proper_filename' ), $file, $filename, $mimes, $real_mime );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45707>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list