Make WordPress Core


Ignore:
Timestamp:
11/07/2005 09:05:47 AM (18 years ago)
Author:
matt
Message:

Simplify status_header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3001 r3005  
    20632063        $text = 'Gone';
    20642064
    2065     if ( preg_match('/cgi/',php_sapi_name()) ) {
    2066         @header("Status: $header $text");
    2067     } else {
    2068         if ( version_compare(phpversion(), '4.3.0', '>=') )
    2069             @header($text, TRUE, $header);
    2070         else
    2071             @header("HTTP/1.x $header $text");
    2072     }
     2065    @header("HTTP/1.1 $header $text");
     2066    @header("Status: $header $text");
    20732067}
    20742068
Note: See TracChangeset for help on using the changeset viewer.