Make WordPress Core


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

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r3862 r4144  
    8888    global $id;
    8989
    90     if ('' != get_settings('permalink_structure'))
     90    if ('' != get_option('permalink_structure'))
    9191        $url = trailingslashit( get_permalink() ) . 'feed/';
    9292    else
    93         $url = get_settings('home') . "/$commentsrssfilename?feed=rss2&p=$id";
     93        $url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id";
    9494
    9595    return apply_filters('post_comments_feed_link', $url);
     
    9898function get_author_rss_link($echo = false, $author_id, $author_nicename) {
    9999       $auth_ID = $author_id;
    100        $permalink_structure = get_settings('permalink_structure');
     100       $permalink_structure = get_option('permalink_structure');
    101101
    102102       if ('' == $permalink_structure) {
    103                  $link = get_settings('home') . '?feed=rss2&author=' . $author_id;
     103                 $link = get_option('home') . '?feed=rss2&author=' . $author_id;
    104104       } else {
    105105                 $link = get_author_link(0, $author_id, $author_nicename);
     
    114114
    115115function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
    116        $permalink_structure = get_settings('permalink_structure');
     116       $permalink_structure = get_option('permalink_structure');
    117117
    118118       if ('' == $permalink_structure) {
    119                  $link = get_settings('home') . '?feed=rss2&cat=' . $cat_ID;
     119                 $link = get_option('home') . '?feed=rss2&cat=' . $cat_ID;
    120120       } else {
    121121                 $link = get_category_link($cat_ID);
Note: See TracChangeset for help on using the changeset viewer.