Title: Bug in wp-rss2.php?
Last modified: August 18, 2016

---

# Bug in wp-rss2.php?

 *  [tekoteko](https://wordpress.org/support/users/tekoteko/)
 * (@tekoteko)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/bug-in-wp-rss2php/)
 * Lines 40-43:
 * `code`<?php if (get_settings(‘rss_use_excerpt’)) : ?>
    <description><![CDATA[
   <?php the_excerpt_rss() ?>]]></description> <?php else : ?> <description><![CDATA[
   <?php the_excerpt_rss() ?>]]></description>`/code`
 * It’s the exact same thing. When I changed to the following, it seems to be working:
 * `code`<description><![CDATA[<?php the_content_rss(”, 0, ”, get_settings(‘rss_excerpt_length’))?
   >]]></description>`code`

Viewing 1 replies (of 1 total)

 *  Thread Starter [tekoteko](https://wordpress.org/support/users/tekoteko/)
 * (@tekoteko)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/bug-in-wp-rss2php/#post-490822)
 * This markup is annoying without a clear explanation, and plus without “Preview
   post”. Repost, hope the code will be clear:
 * Lines 40-43:
 * `<?php if (get_settings('rss_use_excerpt')) : ?>
    <description><![CDATA[<?php
   the_excerpt_rss() ?>]]></description> <?php else : ?> <description><![CDATA[<?
   php the_excerpt_rss() ?>]]></description>
 * It’s the exact same thing. When I changed to the following, it seems to be working:
 * `<description><![CDATA[<?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'))?
   >]]></description>`

Viewing 1 replies (of 1 total)

The topic ‘Bug in wp-rss2.php?’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 1 reply
 * 1 participant
 * Last reply from: [tekoteko](https://wordpress.org/support/users/tekoteko/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/bug-in-wp-rss2php/#post-490822)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
