Make WordPress Core


Ignore:
Timestamp:
07/08/2013 08:27:06 PM (12 years ago)
Author:
nacin
Message:

Support IIS 8 and above.

props hurtige for initial patch.
fixes #23533.

File:
1 edited

Legend:

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

    r21367 r24594  
    9494
    9595/**
    96  * Whether the server software is IIS 7.X
     96 * Whether the server software is IIS 7.X or greater
    9797 * @global bool $is_iis7
    9898 */
    99 $is_iis7 = $is_IIS && (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false);
     99$is_iis7 = $is_IIS && intval( substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/' ) + 14 ) ) >= 7;
    100100
    101101/**
Note: See TracChangeset for help on using the changeset viewer.