WordPress.org

Plugin Directory

Changeset 631019


Ignore:
Timestamp:
11/28/12 03:07:05 (17 months ago)
Author:
cfinke
Message:

Jetpack_User_Agent: If there's no user agent, it's probably not an iPad.

props @danielbachhuber

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/class.jetpack-user-agent.php

    r619533 r631019  
    575575    */ 
    576576    function is_ipad( $type = 'ipad-any' ) { 
     577 
     578        if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) 
     579            return false; 
     580 
    577581        $ua = strtolower( $_SERVER['HTTP_USER_AGENT'] ); 
    578582 
Note: See TracChangeset for help on using the changeset viewer.