Make WordPress Core

Changeset 39165


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.

Location:
trunk/src/wp-includes
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r39151 r39165  
    37583758     * Callback for validating the external_header_video value.
    37593759     *
    3760      * Ensures that the provided URL is for YouTube or Vimeo.
     3760     * Ensures that the provided URL is supported.
    37613761     *
    37623762     * @since 4.7.0
  • 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.