WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#24911 closed defect (bug) (fixed)

Media shortcodes must use wp_get_mime_types() with wp_check_filetype()

Reported by: nacin Owned by: 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)

comment:1 nacin9 months 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.

comment:2 nacin9 months 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.