diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 7ef7059ce4..810abfee6f 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -482,6 +482,10 @@ function rss_enclosure() { foreach ( (array) $val as $enc ) { $enclosure = explode( "\n", $enc ); + if ( count( $enclosure ) < 3 ) { + continue; + } + // Only get the first element, e.g. 'audio/mpeg' from 'audio/mpeg mpga mp2 mp3'. $t = preg_split( '/[ \t]/', trim( $enclosure[2] ) ); $type = $t[0]; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0498e78083..c8db80d52b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-beta3-59240'; +$wp_version = '6.7-beta3-59241'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.