Other piece of r16904. Limit variable string searching when possible. See #10187
git-svn-id: https://develop.svn.wordpress.org/trunk@16905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c6f239ae68
commit
d1b78e5309
@ -80,13 +80,12 @@ $is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos(
|
||||
* Whether the server software is IIS or something else
|
||||
* @global bool $is_IIS
|
||||
*/
|
||||
$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'ExpressionDevServer') !== false);
|
||||
$is_IIS = !$is_apache && (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'ExpressionDevServer') !== false);
|
||||
|
||||
/**
|
||||
* Whether the server software is IIS 7.X
|
||||
* @global bool $is_iis7
|
||||
*/
|
||||
$is_iis7 = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false);
|
||||
|
||||
$is_iis7 = $is_IIS && (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false);
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user