| 404 | | echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); |
| | 404 | |
| | 405 | //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3' |
| | 406 | $t = split('[ \t]', trim($enclosure[2]) ); |
| | 407 | $type = $t[0]; |
| | 408 | |
| | 409 | echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . $type . '" />' . "\n"); |