is_winIE or is_macIE

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: , , ,

Advertisements

One Response to “is_winIE or is_macIE”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: