From 85c62ad3be8c6e89dd5654c470ecea162ff91595 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 11 Oct 2013 17:25:11 +0000 Subject: [PATCH] Update the basic browser detection to detect IE11. Fixes #25562. git-svn-id: https://develop.svn.wordpress.org/trunk@25767 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/vars.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/vars.php b/src/wp-includes/vars.php index fbf83a0486..bb9da76904 100644 --- a/src/wp-includes/vars.php +++ b/src/wp-includes/vars.php @@ -68,12 +68,12 @@ if ( isset($_SERVER['HTTP_USER_AGENT']) ) { } } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) { $is_safari = true; - } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) { - $is_gecko = true; - } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false ) { + } elseif ( ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false ) && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false ) { $is_winIE = true; } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false ) { $is_macIE = true; + } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) { + $is_gecko = true; } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false ) { $is_opera = true; } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Nav') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.') !== false ) {