From 138b38fd60e8b869e8de6dbdd15ef93a99be1010 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 26 Jun 2012 20:39:04 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 839d798a89..60f1fa27a3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; }