Changeset 39165
- Timestamp:
- 11/08/2016 07:19:23 PM (8 years ago)
- 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 3758 3758 * Callback for validating the external_header_video value. 3759 3759 * 3760 * Ensures that the provided URL is for YouTube or Vimeo.3760 * Ensures that the provided URL is supported. 3761 3761 * 3762 3762 * @since 4.7.0 -
trunk/src/wp-includes/theme.php
r39121 r39165 1386 1386 if ( preg_match( '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#', $video_url ) ) { 1387 1387 $settings['mimeType'] = 'video/x-youtube'; 1388 } elseif ( preg_match( '#^https?://(.+\.)?vimeo\.com/.*#', $video_url ) ) {1389 $settings['mimeType'] = 'video/x-vimeo';1390 1388 } elseif ( ! empty( $video_type['type'] ) ) { 1391 1389 $settings['mimeType'] = $video_type['type'];
Note: See TracChangeset
for help on using the changeset viewer.