Opened 3 years ago
Closed 3 years ago
#12849 closed enhancement (fixed)
Add WordPerfect filetypes to functions.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | General | Version: | 3.0 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | morgan.estes@… |
Description
WordPerfect document filetypes aren't listed in wp_ext2type() or get_allowed_mime_types() in functions.php. This patch adds the wp and wpd extensions to those functions.
Attachments (1)
Change History (4)
morganestes — 3 years ago
comment:2
morganestes — 3 years ago
Correct, get_allowed_mime_types() already had both html and htm, but ext2type() only had html listed in the code array, so I added htm to the array.
'code' => array( 'css', 'html', 'htm', 'php', 'js' )
Note: See
TracTickets for help on using
tickets.

Looks like the patch also adds htm to ext2type(), which is already in get_allowed_mime_types().