WordPress.org

Make WordPress Core

Changeset 11379


Ignore:
Timestamp:
05/18/09 14:54:16 (6 years ago)
Author:
ryan
Message:

Recognize Expression Web 2 as IIS. Props peaceablewhale, DD32. fixes #8725

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r11350 r11379  
    6666 * @global bool $is_apache 
    6767 */ 
    68 $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false; 
     68$is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false); 
    6969 
    7070/** 
     
    7272 * @global bool $is_IIS 
    7373 */ 
    74 $is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false; 
     74$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'ExpressionDevServer') !== false); 
    7575 
    7676/** 
    7777 * Whether the server software is IIS 7.X 
    78  * @global bool $is_IIS7 
     78 * @global bool $is_iis7 
    7979 */ 
    80 $is_iis7 = ($is_IIS && strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false) ? true : false; 
     80$is_iis7 = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false); 
    8181 
    8282 
Note: See TracChangeset for help on using the changeset viewer.