diff --git a/wp-includes/theme.php b/wp-includes/theme.php index c158b51969..c7c4c3ca63 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1427,12 +1427,13 @@ function has_header_video() { * @return string|false Header video URL or false if there is no video. */ function get_header_video_url() { - $id = absint( get_theme_mod( 'header_video' ) ); - $url = esc_url( get_theme_mod( 'external_header_video' ) ); + $id = absint( get_theme_mod( 'header_video' ) ); if ( $id ) { // Get the file URL from the attachment ID. $url = wp_get_attachment_url( $id ); + } else { + $url = get_theme_mod( 'external_header_video' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 28d69e2668..4c99174a44 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47266'; +$wp_version = '5.4-alpha-47267'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.