BUG 390: Fixed support for multiple enclosures.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-10-20 16:54:31 +00:00
parent 2bef1de2b9
commit 3dde29bde0
1 changed files with 6 additions and 3 deletions

View File

@ -46,11 +46,14 @@ $custom_fields = get_post_custom();
if( is_array( $custom_fields ) ) {
while( list( $key, $val ) = each( $custom_fields ) ) {
if( $key == 'enclosure' ) {
$enclosure = $val[ 0 ];
$enclosure = split( "\n", $enclosure );
if (is_array($val)) {
foreach($val as $enc) {
$enclosure = split( "\n", $enc );
print "<enclosure url='".trim( $enclosure[ 0 ] )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n";
}
}
}
}
}
?>
</item>