From 9ce729e6562d9803b55dbd6e3698f42030ce1c08 Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 2 Jun 2007 05:21:18 +0000 Subject: [PATCH] Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545 git-svn-id: http://svn.automattic.com/wordpress/trunk@5640 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 2 +- wp-admin/export.php | 2 +- wp-admin/index-extra.php | 2 +- wp-admin/upgrade.php | 2 +- wp-admin/upload.php | 2 +- wp-comments-post.php | 2 +- wp-includes/classes.php | 6 +++--- wp-includes/feed-atom.php | 2 +- wp-includes/feed-rdf.php | 2 +- wp-includes/feed-rss.php | 2 +- wp-includes/feed-rss2-comments.php | 2 +- wp-includes/feed-rss2.php | 2 +- wp-includes/functions.php | 4 ++-- wp-links-opml.php | 2 +- xmlrpc.php | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index d6ff2efc21..9f84960f1b 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -1,5 +1,5 @@ > diff --git a/wp-admin/upload.php b/wp-admin/upload.php index ac8ecf3b61..1c9446c497 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -1,7 +1,7 @@ query_vars['feed']) ) { - @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); + @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); } else { // We're showing a feed, so WP is indeed the only thing that last changed if ( $this->query_vars['withcomments'] @@ -729,7 +729,7 @@ class WP_Ajax_Response { } function send() { - header('Content-type: text/xml'); + header('Content-Type: text/xml'); echo ""; foreach ( $this->responses as $response ) echo $response; diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php index be0be78b1e..265c080743 100644 --- a/wp-includes/feed-atom.php +++ b/wp-includes/feed-atom.php @@ -1,5 +1,5 @@ diff --git a/wp-includes/feed-rdf.php b/wp-includes/feed-rdf.php index d1ac458956..ee9b6c72d2 100644 --- a/wp-includes/feed-rdf.php +++ b/wp-includes/feed-rdf.php @@ -1,5 +1,5 @@ diff --git a/wp-includes/feed-rss.php b/wp-includes/feed-rss.php index 447dd59e16..5c7f844262 100644 --- a/wp-includes/feed-rss.php +++ b/wp-includes/feed-rss.php @@ -1,5 +1,5 @@ diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php index 50f5e3dae8..4865dfbe0c 100644 --- a/wp-includes/feed-rss2-comments.php +++ b/wp-includes/feed-rss2-comments.php @@ -1,5 +1,5 @@ '; ?> diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 588a063a54..8c81ff6924 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -1,5 +1,5 @@ diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 345e1ba8c6..b4dae55102 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -743,7 +743,7 @@ function nocache_headers() { function cache_javascript_headers() { $expiresOffset = 864000; // 10 days - header("Content-type: text/javascript; charset=" . get_bloginfo('charset')); + header("Content-Type: text/javascript; charset=" . get_bloginfo('charset')); header("Vary: Accept-Encoding"); // Handle proxies header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT"); } @@ -797,7 +797,7 @@ function do_feed_atom($for_comments) { } function do_robots() { - header('Content-type: text/plain; charset=utf-8'); + header('Content-Type: text/plain; charset=utf-8'); do_action('do_robotstxt'); diff --git a/wp-links-opml.php b/wp-links-opml.php index b586e90fd1..1929eec9ef 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -5,7 +5,7 @@ if (empty($wp)) { wp(); } -header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); +header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $link_cat = $_GET['link_cat']; if ((empty ($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) { $link_cat = ''; diff --git a/xmlrpc.php b/xmlrpc.php index 7c14289f33..1cd413edf3 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -18,7 +18,7 @@ if ( isset($HTTP_RAW_POST_DATA) ) include('./wp-config.php'); if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd -header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); +header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); ?> '; ?>