• Resolved ykawato

    (@ykawato)


    Hi, I am using is_mobile() and wasn’t working so I did the following to make it work.

    Taking a look at the source code, line 238

    if(isset($browserInfo['ismobiledevice']) && $browserInfo['ismobiledevice']==1)

    changed it to

    if(isset($browserInfo['ismobiledevice']) && $browserInfo['ismobiledevice']=='true')

    and now it detects successfully.

    It’s a very simple and great plugin. Thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: PHP Browser Detection] is_mobile() not working’ is closed to new replies.