From 7c78a9cdae04643a6e096d125841fcdc1fc4ff3c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 11 Oct 2013 17:26:09 +0000 Subject: [PATCH] Update the basic browser detection to detect IE11. Fixes #25562. Built from https://develop.svn.wordpress.org/trunk@25767 git-svn-id: http://core.svn.wordpress.org/trunk@25680 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/vars.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/vars.php b/wp-includes/vars.php index fbf83a0486..bb9da76904 100644 --- a/wp-includes/vars.php +++ b/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 ) {