ifacethoughts

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

Discussion [Participate or Link]

  1. Abhijit Nadgouda @ iface » Wordpress Global Variables said:

    [...] $is_macIE [...]

  2. Detecting Browsers with Global Wordpress Variables | For-Instance said:

    [...] found out that WordPress generates a bunch of browser variables that can tell you which browser you are currently looking [...]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.