#25176 closed enhancement (fixed)
Add 'image' type/extensions to wp_ext2type() and make it case insensitive
| Reported by: | xparham | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Media | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Well, I know that you can add any type check to wp_ext2type() with ext2type filter, but why it does not support image type by default?
On the other note, I think this function should be case insensitive when it searches for the extension in type arrays.
Please find a patch attached.
Attachments (2)
Change History (7)
#3
@
13 years ago
- Keywords commit added
I saw some issues on support forums where image uploading didn't work, and it's been reported that adding image types to wp_ext2type() fixes that (I even saw instructions for hacking core instead of using the ext2type filter).
I guess there's a plugin doing something weird, but looks like 25176.patch would solve that as well.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#25261 was marked as a duplicate.