Make WordPress Core

Ticket #20923: 20923.2.diff

File 20923.2.diff, 561 bytes (added by nacin, 12 years ago)
  • wp-includes/functions.php

     
    36943694        if ( strpos($ua, 'iPhone') !== false
    36953695                || strpos($ua, 'iPad') !== false
    36963696                || strpos($ua, 'iPod') !== false ) {
    3697                         return false;
     3697                        return preg_match( '#(iPod|iPad|iPhone); U; CPU( iPhone)? OS ([\d_]+) like Mac OS X#', $_SERVER['HTTP_USER_AGENT'], $version )
     3698                                && version_compare( $version[3], '6', '>=' );
    36983699        } else {
    36993700                return true;
    37003701        }