Make WordPress Core


Ignore:
Timestamp:
10/11/2013 05:25:11 PM (13 years ago)
Author:
azaozz
Message:

Update the basic browser detection to detect IE11. Fixes #25562.

File:
1 edited

Legend:

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

    r25718 r25767  
    6969        } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) {
    7070                $is_safari = true;
    71         } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) {
    72                 $is_gecko = true;
    73         } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false ) {
     71        } elseif ( ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false ) && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false ) {
    7472                $is_winIE = true;
    7573        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false ) {
    7674                $is_macIE = true;
     75        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) {
     76                $is_gecko = true;
    7777        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false ) {
    7878                $is_opera = true;
Note: See TracChangeset for help on using the changeset viewer.