Make WordPress Core


Ignore:
Timestamp:
01/10/2015 04:58:49 AM (11 years ago)
Author:
wonderboymusic
Message:

Use PHP_SAPI constant instead of php_sapi_name() in iis7_supports_permalinks(), wp_fix_server_vars(), and wp_redirect().

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r31107 r31120  
    11731173    $location = wp_sanitize_redirect($location);
    11741174
    1175     if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
     1175    if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
    11761176        status_header($status); // This causes problems on IIS and some FastCGI setups
    11771177
Note: See TracChangeset for help on using the changeset viewer.