Make WordPress Core


Ignore:
Timestamp:
06/02/2007 05:21:18 AM (18 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/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');
Note: See TracChangeset for help on using the changeset viewer.