Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 )
Note: See TracChangeset for help on using the changeset viewer.