WordPress.org

Ready to get started?Download WordPress

Forums

PHP Browser Detection
[resolved] [Feature Request] Please consider adding 'lte' support (2 posts)

  1. brokenflipside
    Member
    Posted 1 year ago #

    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/

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 1 year ago #

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

    if(is_ie() && get_browser_version() <= 8) {
      /* do stuff */
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic