From 89c103f8497892e5e11b7714a87d55fa09ac7415 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 22 May 2017 05:38:05 +0000 Subject: [PATCH] Media: Remove core embedding support for WMV and WMA files since MediaElement.js has discontinued supporting them. Plugins may continue to add embedding support for these file formats by re-adding them via the `wp_video_extensions` and `wp_audio_extensions` filters while also implementing fallback rendering routines via the `wp_video_shortcode_override` and `wp_audio_shortcode_override` filters. See #39994, #39995. Fixes #40819. git-svn-id: https://develop.svn.wordpress.org/trunk@40813 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 19eba00a6a..81d83d8cc0 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2159,9 +2159,9 @@ function wp_get_audio_extensions() { * @since 3.6.0 * * @param array $extensions An array of support audio formats. Defaults are - * 'mp3', 'ogg', 'wma', 'm4a', 'wav'. + * 'mp3', 'ogg', 'm4a', 'wav'. */ - return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'wma', 'm4a', 'wav' ) ); + return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'm4a', 'wav' ) ); } /** @@ -2392,9 +2392,9 @@ function wp_get_video_extensions() { * @since 3.6.0 * * @param array $extensions An array of support video formats. Defaults are - * 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv'. + * 'mp4', 'm4v', 'webm', 'ogv', 'flv'. */ - return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ) ); + return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'flv' ) ); } /**