[wp-trac] [WordPress Trac] #17244: RSS feed not showing full text regardless of settings

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 26 13:27:44 UTC 2011


#17244: RSS feed not showing full text regardless of settings
--------------------------+-----------------------------
 Reporter:  miocene22     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 This came to my attention after a client approached me noting that the RSS
 feed only outputs a summary regardless of the "full text" setting in the
 wordpress back end.

 The problem is seen in the core file: wp-includes/feed-rss2.php; line 44:


 {{{
 #!php
 <?php if (get_option('rss_use_excerpt')) : ?>
                 <description><![CDATA[<?php the_excerpt_rss()
 ?>]]></description>
 <?php else : ?>
                 <description><![CDATA[<?php the_excerpt_rss()
 ?>]]></description>
         <?php if ( strlen( $post->post_content ) > 0 ) : ?>
                 <content:encoded><![CDATA[<?php the_content_feed('rss2')
 ?>]]></content:encoded>
         <?php else : ?>
                 <content:encoded><![CDATA[<?php the_excerpt_rss()
 ?>]]></content:encoded>
         <?php endif; ?>
 <?php endif; ?>
 }}}

 Instead I believe it should be:

 {{{
 #!php
 <?php if (get_option('rss_use_excerpt')) : ?>
                 <description><![CDATA[<?php the_excerpt_rss()
 ?>]]></description>
 <?php else : ?>
                 <description><![CDATA[<?php the_content_feed('rss2')
 ?>]]></description>
         <?php if ( strlen( $post->post_content ) > 0 ) : ?>
                 <content:encoded><![CDATA[<?php the_content_feed('rss2')
 ?>]]></content:encoded>
         <?php else : ?>
                 <content:encoded><![CDATA[<?php the_excerpt_rss()
 ?>]]></content:encoded>
         <?php endif; ?>
 <?php endif; ?>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17244>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list