Make WordPress Core

Changeset 956 for trunk/wp-rss.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-rss.php

    r836 r956  
    2323*/
    2424
    25 if (!isset($rss_language)) { $rss_language = 'en'; }
    26 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
    27 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }
    2825?>
    2926<?php echo "<?xml version=\"1.0\"?".">"; ?>
     
    3835        <managingEditor><?php echo antispambot($admin_email) ?></managingEditor>
    3936        <webMaster><?php echo antispambot($admin_email) ?></webMaster>
    40         <language><?php echo $rss_language ?></language>
     37        <language><?php echo get_settings('rss_language'); ?></language>
    4138
    4239<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     
    4845//          echo "<category>"; the_category_unicode(); echo "</category>";
    4946$more = 1;
    50 if ($rss_use_excerpt) {
     47if (get_settings('rss_use_excerpt')) {
    5148?>
    52             <description><?php the_excerpt_rss($rss_excerpt_length, $rss_encoded_html) ?></description>
     49            <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description>
    5350<?php
    5451} else { // use content
    5552?>
    56             <description><?php the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html) ?></description>
     53            <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description>
    5754<?php
    5855} // end else use content
     
    6057            <link><?php permalink_single_rss() ?></link>
    6158        </item>
    62 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>
     59<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
    6360    </channel>
    6461</rss>
Note: See TracChangeset for help on using the changeset viewer.