Make WordPress Core

Changeset 5640


Ignore:
Timestamp:
06/02/2007 05:21:18 AM (17 years ago)
Author:
rob1n
Message:

Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545

Location:
trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r5634 r5640  
    11<?php
    2 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     2@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    33if (!isset($_GET["page"])) require_once('admin.php');
    44if ( $editing ) {
  • trunk/wp-admin/export.php

    r5563 r5640  
    5252header('Content-Description: File Transfer');
    5353header("Content-Disposition: attachment; filename=$filename");
    54 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     54header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    5555
    5656$where = '';
  • trunk/wp-admin/index-extra.php

    r5347 r5640  
    33require_once (ABSPATH . WPINC . '/rss.php');
    44
    5 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     5@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    66
    77switch ( $_GET['jax'] ) {
  • trunk/wp-admin/upgrade.php

    r5542 r5640  
    1212else
    1313    $step = 0;
    14 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     14@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1515?>
    1616<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • trunk/wp-admin/upload.php

    r5635 r5640  
    22require_once('admin.php');
    33
    4 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     4@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    55
    66if (!current_user_can('upload_files'))
  • trunk/wp-comments-post.php

    r5128 r5640  
    33    header('Allow: POST');
    44    header("HTTP/1.1 405 Method Not Allowed");
    5     header("Content-type: text/plain");
     5    header("Content-Type: text/plain");
    66    exit;
    77}
  • trunk/wp-includes/classes.php

    r5575 r5640  
    177177            if ( !is_user_logged_in() )
    178178                nocache_headers();
    179             @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     179            @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    180180        } else if ( empty($this->query_vars['feed']) ) {
    181             @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
     181            @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    182182        } else {
    183183            // We're showing a feed, so WP is indeed the only thing that last changed
     
    730730
    731731    function send() {
    732         header('Content-type: text/xml');
     732        header('Content-Type: text/xml');
    733733        echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
    734734        foreach ( $this->responses as $response )
  • trunk/wp-includes/feed-atom.php

    r5390 r5640  
    11<?php
    2 header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true);
     2header('Content-Type: application/atom+xml; charset=' . get_option('blog_charset'), true);
    33$more = 1;
    44
  • trunk/wp-includes/feed-rdf.php

    r5390 r5640  
    11<?php
    2 header('Content-type: application/rdf+xml; charset=' . get_option('blog_charset'), true);
     2header('Content-Type: application/rdf+xml; charset=' . get_option('blog_charset'), true);
    33$more = 1;
    44
  • trunk/wp-includes/feed-rss.php

    r5390 r5640  
    11<?php
    2 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     2header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    33$more = 1;
    44
  • trunk/wp-includes/feed-rss2-comments.php

    r5390 r5640  
    11<?php
    2 header('Content-type: text/xml;charset=' . get_option('blog_charset'), true);
     2header('Content-Type: text/xml;charset=' . get_option('blog_charset'), true);
    33
    44echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
  • trunk/wp-includes/feed-rss2.php

    r5390 r5640  
    11<?php
    2 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     2header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    33$more = 1;
    44
  • trunk/wp-includes/functions.php

    r5573 r5640  
    744744function cache_javascript_headers() {
    745745    $expiresOffset = 864000; // 10 days
    746     header("Content-type: text/javascript; charset=" . get_bloginfo('charset'));
     746    header("Content-Type: text/javascript; charset=" . get_bloginfo('charset'));
    747747    header("Vary: Accept-Encoding"); // Handle proxies
    748748    header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
     
    798798
    799799function do_robots() {
    800     header('Content-type: text/plain; charset=utf-8');
     800    header('Content-Type: text/plain; charset=utf-8');
    801801
    802802    do_action('do_robotstxt');
  • trunk/wp-links-opml.php

    r5155 r5640  
    66}
    77
    8 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     8header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    99$link_cat = $_GET['link_cat'];
    1010if ((empty ($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) {
  • trunk/xmlrpc.php

    r5570 r5640  
    1919
    2020if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
    21 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     21header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    2222
    2323?>
Note: See TracChangeset for help on using the changeset viewer.