diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 7127f145cc..b07ecb7f4d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -907,7 +907,7 @@ function do_enclose( $content = null, $post ) { // Check to see if we can figure out the mime type from the extension. $url_parts = parse_url( $url ); - if ( false !== $url_parts ) { + if ( false !== $url_parts && ! empty( $url_parts['path'] ) ) { $extension = pathinfo( $url_parts['path'], PATHINFO_EXTENSION ); if ( ! empty( $extension ) ) { foreach ( wp_get_mime_types() as $exts => $mime ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 3a14dedeef..3557919ba6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta3-48620'; +$wp_version = '5.5-beta3-48621'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.