mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545
git-svn-id: https://develop.svn.wordpress.org/trunk@5640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -176,9 +176,9 @@ class WP {
|
||||
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 @@ class WP_Ajax_Response {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
?>
|
||||
|
||||
@@ -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;
|
||||
|
||||
?>
|
||||
|
||||
@@ -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;
|
||||
|
||||
?>
|
||||
|
||||
@@ -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').'"?'.'>';
|
||||
?>
|
||||
|
||||
@@ -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;
|
||||
|
||||
?>
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user