Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#24911 closed defect (bug) (fixed)

Media shortcodes must use wp_get_mime_types() with wp_check_filetype()

Reported by: nacin's profile nacin Owned by: nacin's profile nacin
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

wp_check_filetype(), by default, uses a list of allowed mime types. This is severely restricted in multisite by default to exclude video file types.

wp_get_mime_types() should be passed as the list of mimes to use.

Change History (2)

#1 @nacin
12 years ago

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

In 24944:

Use wp_get_mime_types() when calling wp_check_filetype() in the audio and video shortcodes. fixes #24911.

#2 @nacin
12 years ago

In 24945:

Use wp_get_mime_types() when calling wp_check_filetype() in the audio and video shortcodes. fixes #24911.

Merges [24911] to the 3.6 branch.

Note: See TracTickets for help on using tickets.