Make WordPress Core

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

    r901 r956  
    88header('Content-type: application/atom+xml', true);
    99
    10 if (!isset($rss_language)) { $rss_language = 'en'; }
    11 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
    12 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }
    1310?>
    1411<?php echo '<?xml version="1.0"?'.'>'; ?>
     
    1613  xmlns="http://purl.org/atom/ns#"
    1714  xmlns:dc="http://purl.org/dc/elements/1.1/"
    18   xml:lang="<?php echo $rss_language ?>">
     15  xml:lang="<?php echo get_settings('rss_language'); ?>">
    1916    <title><?php bloginfo_rss('name') ?></title>
    2017    <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
     
    3532        <issued><?php the_time('Y-m-d\TH:i:s\Z'); ?></issued>
    3633        <?php the_category_rss('rdf') ?>
    37 <?php $more = 1; if ($rss_use_excerpt) {
     34<?php $more = 1; if (get_settings('rss_use_excerpt')) {
    3835?>
    39         <summary type="text/html" mode="escaped"><?php the_excerpt_rss($rss_excerpt_length, 2) ?></summary>
     36        <summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
    4037<?php
    4138} else { // use content
    4239?>
    43         <summary type="text/html"><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></summary>
     40        <summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary>
    4441<?php
    4542} // end else use content
     
    4744        <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
    4845    </entry>
    49     <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>
     46    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
    5047</feed>
Note: See TracChangeset for help on using the changeset viewer.