mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add initial support for browser-based uploads in iOS 6. see #20923 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3599,9 +3599,9 @@ function _device_can_upload() {
|
||||
if ( strpos($ua, 'iPhone') !== false
|
||||
|| strpos($ua, 'iPad') !== false
|
||||
|| strpos($ua, 'iPod') !== false ) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
return preg_match( '#OS ([\d_]+) like Mac OS X#', $ua, $version ) && version_compare( $version[1], '6', '>=' );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user