Add initial support for browser-based uploads in iOS 6. see #20923 for trunk.

git-svn-id: http://core.svn.wordpress.org/trunk@21141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-26 20:39:04 +00:00
parent 1270e4cef6
commit 138b38fd60
1 changed files with 3 additions and 3 deletions

View File

@ -3599,9 +3599,9 @@ function _device_can_upload() {
if ( strpos($ua, 'iPhone') !== false if ( strpos($ua, 'iPhone') !== false
|| strpos($ua, 'iPad') !== false || strpos($ua, 'iPad') !== false
|| strpos($ua, 'iPod') !== 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;
} }
return true;
} }