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-rdf.php

    r10952 r11980  
    4747    <description><?php the_excerpt_rss() ?></description>
    4848<?php else : ?>
    49     <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
    50     <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
     49    <description><?php the_excerpt_rss() ?></description>
     50    <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
    5151<?php endif; ?>
    5252    <?php do_action('rdf_item'); ?>
Note: See TracChangeset for help on using the changeset viewer.