Changeset 6107

Show
Ignore:
Timestamp:
09/13/07 05:00:46 (1 year ago)
Author:
markjaquith
Message:

Check for apply_filters() in status_header() so that it can be called early on in load process

Files:

Legend:

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

    r6104 r6107  
    804804        $protocol = 'HTTP/1.0'; 
    805805    $status_header = "$protocol $header $text"; 
    806     $status_header = apply_filters('status_header', $status_header, $header, $text, $protocol); 
     806    if ( function_exists('apply_filters') ) 
     807        $status_header = apply_filters('status_header', $status_header, $header, $text, $protocol); 
    807808 
    808809    if ( version_compare( phpversion(), '4.3.0', '>=' ) ) {