Make WordPress Core


Ignore:
Timestamp:
11/08/2016 07:19:23 PM (8 years ago)
Author:
joemcgill
Message:

Themes: Remove Vimeo logic from header_video_settings().

Following [39148] and [39128], this removes the mime type logic for
Vimeo URLs from get_header_video_settings() and removes remaining
Vimeo reference from _validate_external_header_video() docs.

Fixes #38544.

File:
1 edited

Legend:

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

    r39121 r39165  
    13861386    if ( preg_match( '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#', $video_url ) ) {
    13871387        $settings['mimeType'] = 'video/x-youtube';
    1388     } elseif ( preg_match( '#^https?://(.+\.)?vimeo\.com/.*#', $video_url ) ) {
    1389         $settings['mimeType'] = 'video/x-vimeo';
    13901388    } elseif ( ! empty( $video_type['type'] ) ) {
    13911389        $settings['mimeType'] = $video_type['type'];
Note: See TracChangeset for help on using the changeset viewer.