Make WordPress Core

Ticket #25562: 25562.patch

File 25562.patch, 1.2 KB (added by azaozz, 11 years ago)
  • src/wp-includes/vars.php

     
    6868                }
    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;
    7979        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Nav') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.') !== false ) {