Other piece of r16904. Limit variable string searching when possible. See #10187
git-svn-id: http://svn.automattic.com/wordpress/trunk@16905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
20e1171ae8
commit
99337166eb
|
@ -80,13 +80,12 @@ $is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos(
|
||||||
* Whether the server software is IIS or something else
|
* Whether the server software is IIS or something else
|
||||||
* @global bool $is_IIS
|
* @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
|
* Whether the server software is IIS 7.X
|
||||||
* @global bool $is_iis7
|
* @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