web/wp-includes/feed-rss2.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    44 <?php if (get_option('rss_use_excerpt')) : ?>
    44 <?php if (get_option('rss_use_excerpt')) : ?>
    45 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    45 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    46 <?php else : ?>
    46 <?php else : ?>
    47 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    47 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    48 	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    48 	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    49 		<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
    49 		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    50 	<?php else : ?>
    50 	<?php else : ?>
    51 		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    51 		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    52 	<?php endif; ?>
    52 	<?php endif; ?>
    53 <?php endif; ?>
    53 <?php endif; ?>
    54 		<wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss>
    54 		<wfw:commentRss><?php echo get_post_comments_feed_link(null, 'rss2'); ?></wfw:commentRss>
    55 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    55 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    56 <?php rss_enclosure(); ?>
    56 <?php rss_enclosure(); ?>
    57 	<?php do_action('rss2_item'); ?>
    57 	<?php do_action('rss2_item'); ?>
    58 	</item>
    58 	</item>
    59 	<?php endwhile; ?>
    59 	<?php endwhile; ?>