WordPress.org

Make WordPress Core

Ticket #29602: 29602.patch

File 29602.patch, 1.5 KB (added by azaozz, 7 years ago)
  • src/wp-admin/includes/media.php

     
    17961796        'multipart_params'    => $post_params,
    17971797);
    17981798
    1799 // Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos
     1799// Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos
    18001800// when enabled. See #29602.
    1801 if ( wp_is_mobile() ) {
     1801if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false &&
     1802        strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) {
     1803
    18021804        $plupload_init['multi_selection'] = false;
    18031805}
    18041806
  • src/wp-includes/media.php

     
    25362536                ),
    25372537        );
    25382538
    2539         // Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos
     2539        // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos
    25402540        // 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
    25422544                $defaults['multi_selection'] = false;
    25432545        }
    25442546