diff --git a/wp-includes/feed.php b/wp-includes/feed.php index e033434b0..31486d8fe 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -401,7 +401,12 @@ function rss_enclosure() { if ($key == 'enclosure') { foreach ( (array) $val as $enc ) { $enclosure = split("\n", $enc); - echo apply_filters('rss_enclosure', '' . "\n"); + + //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3' + $t = split('[ \t]', trim($enclosure[2]) ); + $type = $t[0]; + + echo apply_filters('rss_enclosure', '' . "\n"); } } }