mirror of
git://develop.git.wordpress.org/
synced 2025-03-13 16:39:48 +01:00
Add initial support for browser-based uploads in iOS 6. fixes #20923 for trunk.
git-svn-id: https://develop.svn.wordpress.org/branches/3.4@21142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4ab2647bc
commit
f5a5d55cec
@ -3615,7 +3615,7 @@ function _device_can_upload() {
|
||||
if ( strpos($ua, 'iPhone') !== false
|
||||
|| strpos($ua, 'iPad') !== false
|
||||
|| strpos($ua, 'iPod') !== false ) {
|
||||
return false;
|
||||
return preg_match( '#OS ([\d_]+) like Mac OS X#', $ua, $version ) && version_compare( $version[1], '6', '>=' );
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user