Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r3644 r4144  
    66}
    77
    8 header('Content-type: text/xml;charset=' . get_settings('blog_charset'), true);
     8header('Content-type: text/xml;charset=' . get_option('blog_charset'), true);
    99
    10 echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';
     10echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
    1111?>
    1212<!-- generator="wordpress/<?php echo $wp_version ?>" -->
     
    3535            AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status = 'publish'
    3636            AND post_date_gmt < '" . gmdate("Y-m-d H:i:59") . "'
    37             ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss') );
     37            ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') );
    3838        } else { // if no post id passed in, we'll just ue the last 10 comments.
    3939            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
     
    4242            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish'
    4343            AND $wpdb->comments.comment_approved = '1' AND post_date_gmt < '" . gmdate("Y-m-d H:i:s") . "' 
    44             ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss') );
     44            ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') );
    4545        }
    4646    // this line is WordPress' motor, do not delete it.
Note: See TracChangeset for help on using the changeset viewer.