web/wp-includes/feed-rss2.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    39 		<dc:creator><?php the_author() ?></dc:creator>
    39 		<dc:creator><?php the_author() ?></dc:creator>
    40 		<?php the_category_rss('rss2') ?>
    40 		<?php the_category_rss('rss2') ?>
    41 
    41 
    42 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    42 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    43 <?php if (get_option('rss_use_excerpt')) : ?>
    43 <?php if (get_option('rss_use_excerpt')) : ?>
    44 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    44 		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    45 <?php else : ?>
    45 <?php else : ?>
    46 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    46 		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    47 	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    47 	<?php $content = get_the_content_feed('rss2'); ?>
    48 		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    48 	<?php if ( strlen( $content ) > 0 ) : ?>
       
    49 		<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
    49 	<?php else : ?>
    50 	<?php else : ?>
    50 		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    51 		<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
    51 	<?php endif; ?>
    52 	<?php endif; ?>
    52 <?php endif; ?>
    53 <?php endif; ?>
    53 		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    54 		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    54 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    55 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    55 <?php rss_enclosure(); ?>
    56 <?php rss_enclosure(); ?>