Ticket #3784: patch.diff
| File patch.diff, 1.2 KB (added by donncha, 6 years ago) |
|---|
-
app.php
823 823 } 824 824 $page = (int) $page; 825 825 826 $count = get_ settings('posts_per_rss');826 $count = get_option('posts_per_rss'); 827 827 $query = "paged=$page&posts_per_page=$count&order=DESC"; 828 828 if($post_type == 'attachment') { 829 829 $query .= "&post_type=$post_type"; … … 1044 1044 log_app('Status','401: Auth Required'); 1045 1045 nocache_headers(); 1046 1046 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); 1048 1048 header("HTTP/1.1 401 $msg"); 1049 1049 header('Status: ' . $msg); 1050 1050 header('Content-Type: plain/text'); … … 1054 1054 1055 1055 function output($xml, $ctype = "application/atom+xml") { 1056 1056 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; 1058 1058 header('Connection: close'); 1059 1059 header('Content-Length: '. strlen($xml)); 1060 1060 header('Content-Type: ' . $ctype);
