mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01: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. Built from https://develop.svn.wordpress.org/trunk@39165 git-svn-id: http://core.svn.wordpress.org/trunk@39105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35035be00b
commit
5704743a78
@ -3757,7 +3757,7 @@ final class WP_Customize_Manager {
|
||||
/**
|
||||
* Callback for validating the external_header_video value.
|
||||
*
|
||||
* Ensures that the provided URL is for YouTube or Vimeo.
|
||||
* Ensures that the provided URL is supported.
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
|
3797
wp-includes/class-wp-customize-manager.php.orig
Normal file
3797
wp-includes/class-wp-customize-manager.php.orig
Normal file
File diff suppressed because it is too large
Load Diff
@ -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'];
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta2-39164';
|
||||
$wp_version = '4.7-beta2-39165';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user