[wp-cvs] wordpress wp-rss2.php,1.27,1.28
Ernest MacDougal Campbell III
emc3 at users.sourceforge.net
Wed Oct 20 16:54:34 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17458
Modified Files:
wp-rss2.php
Log Message:
BUG 390: Fixed support for multiple enclosures.
Index: wp-rss2.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-rss2.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** wp-rss2.php 12 Oct 2004 15:52:29 -0000 1.27
--- wp-rss2.php 20 Oct 2004 16:54:31 -0000 1.28
***************
*** 47,53 ****
while( list( $key, $val ) = each( $custom_fields ) ) {
if( $key == 'enclosure' ) {
! $enclosure = $val[ 0 ];
! $enclosure = split( "\n", $enclosure );
! print "<enclosure url='".trim( $enclosure[ 0 ] )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n";
}
}
--- 47,56 ----
while( list( $key, $val ) = each( $custom_fields ) ) {
if( $key == '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";
! }
! }
}
}
More information about the cvs
mailing list