From 05e31695dfc400d4a46e07d389e986a1f375e59f Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 14 Feb 2007 04:54:14 +0000 Subject: [PATCH] get_settings() is deprecated, use get_option(). Props Donncha. fixes #3784 git-svn-id: https://develop.svn.wordpress.org/trunk@4880 602fd350-edb4-49c9-b593-d223f7449a82 --- app.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.php b/app.php index a9711893e3..03d756eb0f 100644 --- a/app.php +++ b/app.php @@ -823,7 +823,7 @@ EOD; } $page = (int) $page; - $count = get_settings('posts_per_rss'); + $count = get_option('posts_per_rss'); $query = "paged=$page&posts_per_page=$count&order=DESC"; if($post_type == 'attachment') { $query .= "&post_type=$post_type"; @@ -1044,7 +1044,7 @@ EOD; log_app('Status','401: Auth Required'); nocache_headers(); header('WWW-Authenticate: Basic realm="WordPress Atom Protocol"'); - header('WWW-Authenticate: Form action="' . get_settings('siteurl') . '/wp-login.php"', false); + header('WWW-Authenticate: Form action="' . get_option('siteurl') . '/wp-login.php"', false); header("HTTP/1.1 401 $msg"); header('Status: ' . $msg); header('Content-Type: plain/text'); @@ -1054,7 +1054,7 @@ EOD; function output($xml, $ctype = "application/atom+xml") { status_header('200'); - $xml = ''."\n".$xml; + $xml = ''."\n".$xml; header('Connection: close'); header('Content-Length: '. strlen($xml)); header('Content-Type: ' . $ctype);