[wp-cvs] wordpress wp-atom.php,1.16,1.17 wp-rss2.php,1.31,1.32
Ryan Boren
rboren at users.sourceforge.net
Sun Jan 9 02:19:32 GMT 2005
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10189
Modified Files:
wp-atom.php wp-rss2.php
Log Message:
Feed fixes from MooKitty. Bug 644.
Index: wp-rss2.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-rss2.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** wp-rss2.php 7 Jan 2005 22:01:58 -0000 1.31
--- wp-rss2.php 9 Jan 2005 02:19:30 -0000 1.32
***************
*** 39,43 ****
--- 39,47 ----
<?php else : ?>
<description><?php the_excerpt_rss() ?></description>
+ <?php if ( strlen( $post->post_content ) > 0 ) : ?>
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
+ <?php else : ?>
+ <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
+ <?php endif; ?>
<?php endif; ?>
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
***************
*** 46,48 ****
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
! </rss>
\ No newline at end of file
--- 50,52 ----
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
! </rss>
Index: wp-atom.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-atom.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** wp-atom.php 7 Jan 2005 22:01:58 -0000 1.16
--- wp-atom.php 9 Jan 2005 02:19:30 -0000 1.17
***************
*** 43,46 ****
--- 43,47 ----
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
<?php endif; ?>
+ <?php rss_enclosure(); ?>
</entry>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
More information about the cvs
mailing list