mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-17 02:54:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@39165 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1385,8 +1385,6 @@ function get_header_video_settings() {
|
||||
|
||||
if ( preg_match( '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#', $video_url ) ) {
|
||||
$settings['mimeType'] = 'video/x-youtube';
|
||||
} elseif ( preg_match( '#^https?://(.+\.)?vimeo\.com/.*#', $video_url ) ) {
|
||||
$settings['mimeType'] = 'video/x-vimeo';
|
||||
} elseif ( ! empty( $video_type['type'] ) ) {
|
||||
$settings['mimeType'] = $video_type['type'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user