WordPress.org

Make WordPress Core

Ticket #13059: 13059.patch

File 13059.patch, 579 bytes (added by hakre, 8 years ago)
  • wp-includes/pluggable.php

     
    904904                header("Refresh: 0;url=$location");
    905905        } else {
    906906                if ( php_sapi_name() != 'cgi-fcgi' )
    907                         status_header($status); // This causes problems on IIS and some FastCGI setups
     907                        status_header($status); // This causes problems on some FastCGI setups with legacy PHP installs (PHP Bug #36705; WP Bug #3215).
    908908                header("Location: $location", true, $status);
    909909        }
    910910}