WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#12849 closed enhancement (fixed)

Add WordPerfect filetypes to functions.php

Reported by: morganestes Owned by:
Milestone: 3.0 Priority: low
Severity: trivial Version: 3.0
Component: General Keywords: has-patch
Focuses: Cc:

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)

functions.patch (1.5 KB) - added by morganestes 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @nacin
10 years ago

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

#2 @morganestes
10 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' )

#3 @dd32
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

r14066 /trunk/wp-includes/functions.php: Add WordPerfect filetypes to Mimetype list. Props morganestes. Fixes #12849

Note: See TracTickets for help on using tickets.