Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 9ce729e6562d9803b55dbd6e3698f42030ce1c08 1 parent 64820ed
rob1n authored
View
2  wp-admin/admin-header.php
@@ -1,5 +1,5 @@
<?php
-@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!isset($_GET["page"])) require_once('admin.php');
if ( $editing ) {
wp_enqueue_script( array('dbx-admin-key?pagenow=' . attribute_escape($pagenow),'admin-custom-fields') );
View
2  wp-admin/export.php
@@ -51,7 +51,7 @@ function export_wp() {
header('Content-Description: File Transfer');
header("Content-Disposition: attachment; filename=$filename");
-header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
+header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
$where = '';
if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) {
View
2  wp-admin/index-extra.php
@@ -2,7 +2,7 @@
require_once('admin.php');
require_once (ABSPATH . WPINC . '/rss.php');
-@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
switch ( $_GET['jax'] ) {
View
2  wp-admin/upgrade.php
@@ -11,7 +11,7 @@
$step = (int) $_GET['step'];
else
$step = 0;
-@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
View
2  wp-admin/upload.php
@@ -1,7 +1,7 @@
<?php
require_once('admin.php');
-@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));
View
2  wp-comments-post.php
@@ -2,7 +2,7 @@
if ($_SERVER["REQUEST_METHOD"] != "POST") {
header('Allow: POST');
header("HTTP/1.1 405 Method Not Allowed");
- header("Content-type: text/plain");
+ header("Content-Type: text/plain");
exit;
}
require( dirname(__FILE__) . '/wp-config.php' );
View
6 wp-includes/classes.php
@@ -176,9 +176,9 @@ function send_headers() {
status_header( 404 );
if ( !is_user_logged_in() )
nocache_headers();
- @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 if ( empty($this->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 @@ function add( $args = '' ) {
}
function send() {
- header('Content-type: text/xml');
+ header('Content-Type: text/xml');
echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
foreach ( $this->responses as $response )
echo $response;
View
2  wp-includes/feed-atom.php
@@ -1,5 +1,5 @@
<?php
-header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true);
+header('Content-Type: application/atom+xml; charset=' . get_option('blog_charset'), true);
$more = 1;
?>
View
2  wp-includes/feed-rdf.php
@@ -1,5 +1,5 @@
<?php
-header('Content-type: application/rdf+xml; charset=' . get_option('blog_charset'), true);
+header('Content-Type: application/rdf+xml; charset=' . get_option('blog_charset'), true);
$more = 1;
?>
View
2  wp-includes/feed-rss.php
@@ -1,5 +1,5 @@
<?php
-header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
+header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
$more = 1;
?>
View
2  wp-includes/feed-rss2-comments.php
@@ -1,5 +1,5 @@
<?php
-header('Content-type: text/xml;charset=' . get_option('blog_charset'), true);
+header('Content-Type: text/xml;charset=' . get_option('blog_charset'), true);
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
?>
View
2  wp-includes/feed-rss2.php
@@ -1,5 +1,5 @@
<?php
-header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
+header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
$more = 1;
?>
View
4 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');
View
2  wp-links-opml.php
@@ -5,7 +5,7 @@
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 = '';
View
2  xmlrpc.php
@@ -18,7 +18,7 @@
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);
?>
<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.