Make WordPress Core

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

    r901 r956  
    2323
    2424add_filter('the_content', 'trim');
    25 if (!isset($rss_language)) { $rss_language = 'en'; }
    2625?>
    2726<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?".">"; ?>
     
    3938    <link><?php bloginfo_rss('url') ?></link>
    4039    <description><?php bloginfo_rss('description') ?></description>
    41     <dc:language><?php echo $rss_language ?></dc:language>
     40    <dc:language><?php echo get_settings('rss_language'); ?></dc:language>
    4241    <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date>
    4342    <dc:creator><?php echo antispambot($admin_email) ?></dc:creator>
     
    5150        <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
    5251            <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
    53         <?php $wp_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>
     52        <?php $wp_items[] = $row; $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
    5453        </rdf:Seq>
    5554    </items>
     
    6261    <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator>
    6362    <?php the_category_rss('rdf') ?>
    64 <?php $more = 1; if ($rss_use_excerpt) {
     63<?php $more = 1; if (get_settings('rss_use_excerpt')) {
    6564?>
    66     <description><?php the_excerpt_rss($rss_excerpt_length, 2) ?></description>
     65    <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
    6766<?php
    6867} else { // use content
    6968?>
    70     <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>
     69    <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
    7170<?php
    7271} // end else use content
Note: See TracChangeset for help on using the changeset viewer.