From 7d0271e45775a9dcf3bfdb1f7314c2f020a11be1 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@4880 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- app.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.php b/app.php index a9711893e..03d756eb0 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);