Wordpress sets is_winIE and is_macIE global variables to identify Microsoft Internet Explorer as part of browser detection in [wordpress root folder]/wp-includes/vars.php. They are set by looking for strings MSIE and Win or Mac in the HTTP_USER_AGENT server variable. It also sets another variable is_IE which is set to true if the browser is Microsoft Internet Explorer on Microsoft Windows or Macs.
Along with these, it also sets the variables is_lynx, is_gecko, is_opera and is_NS4 to identify Lynx, Gecko based browsers, Opera and Netscape 4.0 respectively.
Plugin and theme authors can use these global variables to identify browsers to handle any browser specific features.
Back to full list of global variables.
Technorati tags: browser detection, is_winIE, is_macIE, is_IE


July 20th, 2006 at 10:36 am
[...] $is_macIE [...]