Make WordPress Core

Changeset 40813


Ignore:
Timestamp:
05/22/2017 05:38:05 AM (7 years ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r40809 r40813  
    21602160     *
    21612161     * @param array $extensions An array of support audio formats. Defaults are
    2162      *                          'mp3', 'ogg', 'wma', 'm4a', 'wav'.
    2163      */
    2164     return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'wma', 'm4a', 'wav' ) );
     2162     *                          'mp3', 'ogg', 'm4a', 'wav'.
     2163     */
     2164    return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'm4a', 'wav' ) );
    21652165}
    21662166
     
    23932393     *
    23942394     * @param array $extensions An array of support video formats. Defaults are
    2395      *                          'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv'.
    2396      */
    2397     return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ) );
     2395     *                          'mp4', 'm4v', 'webm', 'ogv', 'flv'.
     2396     */
     2397    return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'flv' ) );
    23982398}
    23992399
Note: See TracChangeset for help on using the changeset viewer.