WordPress.org

Make WordPress Core

Ticket #4918: wp_redirect.diff

File wp_redirect.diff, 518 bytes (added by chmac, 7 years ago)

Patch

  • trunk/wp-includes/pluggable.php

     
    417417        if ( $is_IIS ) { 
    418418                header("Refresh: 0;url=$location"); 
    419419        } else { 
    420                 if ( php_sapi_name() != 'cgi-fcgi' ) 
    421                         status_header($status); // This causes problems on IIS and some FastCGI setups 
    422                 header("Location: $location"); 
     420                header("Location: $location",null,$status); 
    423421        } 
    424422} 
    425423endif;