Ticket #29602: 29602.patch
File 29602.patch, 1.5 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/media.php
1796 1796 'multipart_params' => $post_params, 1797 1797 ); 1798 1798 1799 // Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos1799 // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos 1800 1800 // when enabled. See #29602. 1801 if ( wp_is_mobile() ) { 1801 if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && 1802 strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { 1803 1802 1804 $plupload_init['multi_selection'] = false; 1803 1805 } 1804 1806 -
src/wp-includes/media.php
2536 2536 ), 2537 2537 ); 2538 2538 2539 // Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos2539 // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos 2540 2540 // when enabled. See #29602. 2541 if ( wp_is_mobile() ) { 2541 if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && 2542 strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { 2543 2542 2544 $defaults['multi_selection'] = false; 2543 2545 } 2544 2546