mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Migration to get_settings
git-svn-id: https://develop.svn.wordpress.org/trunk@956 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
11
wp-rss2.php
11
wp-rss2.php
@@ -21,9 +21,6 @@ header("Last-Modified: " . $clast, true);
|
||||
header("Etag: " . $cetag, true);
|
||||
*/
|
||||
|
||||
if (!isset($rss_language)) { $rss_language = 'en'; }
|
||||
if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
|
||||
if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }
|
||||
?>
|
||||
<?php echo '<?xml version="1.0"?'.'>'; ?>
|
||||
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||
@@ -48,18 +45,18 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng
|
||||
<author><?php the_author() ?> (mailto:<?php the_author_email() ?>)</author>
|
||||
<?php the_category_rss() ?>
|
||||
<guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid>
|
||||
<?php $more = 1; if ($rss_use_excerpt) {
|
||||
<?php $more = 1; if (get_settings('rss_use_excerpt')) {
|
||||
?>
|
||||
<description><?php the_excerpt_rss($rss_excerpt_length, 2) ?></description>
|
||||
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
|
||||
<?php
|
||||
} else { // use content
|
||||
?>
|
||||
<description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>
|
||||
<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
|
||||
<?php
|
||||
} // end else use content
|
||||
?>
|
||||
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
|
||||
</item>
|
||||
<?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>
|
||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user