Make WordPress Core

Changeset 956 for trunk/wp-rss2.php


Ignore:
Timestamp:
03/01/2004 06:13:32 AM (21 years ago)
Author:
saxmatt
Message:

Migration to get_settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-rss2.php

    r901 r956  
    2222*/
    2323
    24 if (!isset($rss_language)) { $rss_language = 'en'; }
    25 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
    26 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }
    2724?>
    2825<?php echo '<?xml version="1.0"?'.'>'; ?>
     
    4946        <?php the_category_rss() ?>
    5047        <guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid>
    51 <?php $more = 1; if ($rss_use_excerpt) {
     48<?php $more = 1; if (get_settings('rss_use_excerpt')) {
    5249?>
    53         <description><?php the_excerpt_rss($rss_excerpt_length, 2) ?></description>
     50        <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
    5451<?php
    5552} else { // use content
    5653?>
    57         <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>
     54        <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
    5855<?php
    5956} // end else use content
     
    6158        <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
    6259    </item>
    63     <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>
     60    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
    6461</channel>
    6562</rss>
Note: See TracChangeset for help on using the changeset viewer.