WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: PHP Browser Detection] [Feature Request] Please consider adding 'lte' support

[Resolved] [Plugin: PHP Browser Detection] [Feature Request] Please consider adding 'lte' support

  • mgratch
    Member

    @brokenflipside

    Please consider including the following function to your plugin, I don’t think I would be the only person to find it useful to check for less than or equals to IE8. Plus it would help me so much not needing to add it after any future updates. 🙂 Thanks for this plugin it certainly saved me time doing it myself as I was just about to embark on this process before stumbling across it. Great work!!!

    function is_lte_IE8 (){
    	$browserInfo = php_browser_info();
    	if(isset($browserInfo['browser']) && $browserInfo['browser']=='IE' && (int)$browserInfo['majorver'] <= 8)
    		return true;
    	return false;
    }

    http://wordpress.org/extend/plugins/php-browser-detection/

Viewing 1 replies (of 1 total)
  • Plugin Author Mindshare Labs, Inc.
    Participant

    @mindshare

    This feature is available in the latest version (2.2) using the following syntax:

    if(is_ie() && get_browser_version() <= 8) {
      /* do stuff */
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: PHP Browser Detection] [Feature Request] Please consider adding 'lte' support’ is closed to new replies.