Make WordPress Core


Ignore:
Timestamp:
09/28/2009 02:36:48 PM (16 years ago)
Author:
ryan
Message:

Deprecates the_content_rss(). Add the_content_feed() and get_the_content_feed(). Convert places that called the_content_rss() with an excerpt length to the_excerpt_rss(). Remove the rss_excerpt_length option. Use the_content_feed() where the_content() was previously used in feeds. Props Viper007Bond.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-rss2.php

    r11864 r11980  
    4747        <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    4848    <?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>
    5050    <?php else : ?>
    5151        <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
Note: See TracChangeset for help on using the changeset viewer.