WordPress.org

Make WordPress Core

Ticket #6779: pluggable.php.diff

File pluggable.php.diff, 409 bytes (added by error, 4 years ago)

Patch wp_redirect() to send correct $status code

  • wordpress/wp-includes/pluggable.php

    old new  
    862862        } else { 
    863863                if ( php_sapi_name() != 'cgi-fcgi' ) 
    864864                        status_header($status); // This causes problems on IIS and some FastCGI setups 
    865                 header("Location: $location"); 
     865                header("Location: $location", true, $status); 
    866866        } 
    867867} 
    868868endif;