WordPress.org

Make WordPress Core

Changeset 4880


Ignore:
Timestamp:
02/14/07 04:54:14 (8 years ago)
Author:
markjaquith
Message:

get_settings() is deprecated, use get_option(). Props Donncha. fixes #3784

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app.php

    r4794 r4880  
    824824        $page = (int) $page; 
    825825         
    826         $count = get_settings('posts_per_rss');  
     826        $count = get_option('posts_per_rss');    
    827827        $query = "paged=$page&posts_per_page=$count&order=DESC"; 
    828828        if($post_type == 'attachment') { 
     
    10451045        nocache_headers(); 
    10461046        header('WWW-Authenticate: Basic realm="WordPress Atom Protocol"'); 
    1047         header('WWW-Authenticate: Form action="' . get_settings('siteurl') . '/wp-login.php"', false);  
     1047        header('WWW-Authenticate: Form action="' . get_option('siteurl') . '/wp-login.php"', false);  
    10481048        header("HTTP/1.1 401 $msg"); 
    10491049        header('Status: ' . $msg); 
     
    10551055    function output($xml, $ctype = "application/atom+xml") { 
    10561056            status_header('200'); 
    1057             $xml = '<?xml version="1.0" encoding="' . get_settings('blog_charset') . '"?>'."\n".$xml; 
     1057            $xml = '<?xml version="1.0" encoding="' . get_option('blog_charset') . '"?>'."\n".$xml; 
    10581058            header('Connection: close'); 
    10591059            header('Content-Length: '. strlen($xml)); 
Note: See TracChangeset for help on using the changeset viewer.