WordPress.org

Support

Support » Requests and Feedback » Bug in wp-rss2.php?

Bug in wp-rss2.php?

  • 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)
  • 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.