Ticket #39512: 39512.2.diff
File 39512.2.diff, 786 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/theme.php
1338 1338 $id = absint( get_theme_mod( 'header_video' ) ); 1339 1339 $url = esc_url( get_theme_mod( 'external_header_video' ) ); 1340 1340 1341 if ( ! $id && ! $url ) {1342 return false;1343 }1344 1345 1341 if ( $id ) { 1346 1342 // Get the file URL from the attachment ID. 1347 1343 $url = wp_get_attachment_url( $id ); 1348 1344 } 1349 1345 1346 /** 1347 * Modify the header video url. 1348 * 1349 * @since 4.7.3 1350 * 1351 * @param string $url Header video url, if available. 1352 */ 1353 $url = apply_filters( 'get_header_video_url', $url ); 1354 1355 if ( ! $id && ! $url ) { 1356 return false; 1357 } 1358 1350 1359 return esc_url_raw( set_url_scheme( $url ) ); 1351 1360 } 1352 1361