Make WordPress Core


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-commentsrss2.php

    r900 r956  
    66header('Content-type: text/xml');
    77
    8 if (!isset($rss_language)) { $rss_language = 'en'; }
    98echo '<?xml version="1.0"?'.'>';
    109?>
     
    2221    <link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link>
    2322    <description><?php bloginfo_rss("description") ?></description>
    24     <language><?php echo $rss_language ?></language>
     23    <language><?php echo get_settings('rss_language'); ?></language>
    2524    <pubDate><?php echo gmdate('r'); ?></pubDate>
    2625    <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
     
    3433            AND $tablecomments.comment_approved = '1' AND $tableposts.post_status = 'publish'
    3534            AND post_date < '".date("Y-m-d H:i:s")."'
    36             ORDER BY comment_date LIMIT $posts_per_rss");
     35            ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') );
    3736        } else { // if no post id passed in, we'll just ue the last 10 comments.
    3837            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
     
    4140            LEFT JOIN $tableposts ON comment_post_id = id WHERE $tableposts.post_status = 'publish'
    4241            AND $tablecomments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 
    43             ORDER BY comment_date DESC LIMIT $posts_per_rss");
     42            ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
    4443        }
    4544    // this line is WordPress' motor, do not delete it.
Note: See TracChangeset for help on using the changeset viewer.