WordPress.org

Make WordPress Core

Ticket #7361: status-header-3.diff

File status-header-3.diff, 565 bytes (added by nacin, 4 years ago)

Patch using constant, checking == not ===

  • functions.php

     
    15591559        if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) 
    15601560                $protocol = 'HTTP/1.0'; 
    15611561        $status_header = "$protocol $header $text"; 
     1562 
     1563        if( defined( 'CGI_STATUS_HEADER' ) && CGI_STATUS_HEADER ) 
     1564                $status_header = "Status: $header $text"; 
     1565 
    15621566        if ( function_exists( 'apply_filters' ) ) 
    15631567                $status_header = apply_filters( 'status_header', $status_header, $header, $text, $protocol ); 
    15641568