WP Super Cache
How to detect IE 6 with mobile groups filter (2 posts)

  1. gilkudik
    Posted 4 years ago #

    I'm using the cached_mobile_groups hook to detect IE 6 and show a special theme that display a warning about using that browser but just don't work.

    What am I doing wrong?

    function array_mobile_devices() {
    		$arreglo = array(
    			'ie6' => array( 'Mozilla 4.0 (compatible; MSIE 6', '^Mozilla\/4\.0 \(compatible; MSIE 6' ),
    			'apple' => array( 'iPod', 'iPhone' ),
    			'ipad' => array( 'iPad' ),
    			'rim' => array( "BlackBerry" ),
    			'google' => array( 'Android' )
    			//el resto de los moviles van directo
    		return $arreglo;
    	apply_filters( 'cached_mobile_groups', 'array_mobile_devices' );
  2. Donncha O Caoimh
    Plugin Author

    Posted 3 years ago #

    Did you reload the admin page? Perhaps debug the "cached_mobile_groups" chunk of code in wp-cache.php to verify it's set correctly, and also check the code in wp-cache-phase1.php. You may have found a bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic