mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@11980 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -23,11 +23,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<item>
|
||||
<title><?php the_title_rss() ?></title>
|
||||
<?php if (get_option('rss_use_excerpt')) { ?>
|
||||
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
|
||||
<?php } else { // use content ?>
|
||||
<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length')) ?></description>
|
||||
<?php } ?>
|
||||
<link><?php the_permalink_rss() ?></link>
|
||||
<?php do_action('rss_item'); ?>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user