| @@ 78-80 (lines=3) @@ | ||
| 75 | $is_safari = true; |
|
| 76 | } elseif ( ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false ) && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false ) { |
|
| 77 | $is_winIE = true; |
|
| 78 | } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false ) { |
|
| 79 | $is_macIE = true; |
|
| 80 | } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) { |
|
| 81 | $is_gecko = true; |
|
| 82 | } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false ) { |
|
| 83 | $is_opera = true; |
|
| @@ 84-86 (lines=3) @@ | ||
| 81 | $is_gecko = true; |
|
| 82 | } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false ) { |
|
| 83 | $is_opera = true; |
|
| 84 | } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Nav') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.') !== false ) { |
|
| 85 | $is_NS4 = true; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | if ( $is_safari && stripos($_SERVER['HTTP_USER_AGENT'], 'mobile') !== false ) |
|
| @@ 1888-1892 (lines=5) @@ | ||
| 1885 | ||
| 1886 | // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos |
|
| 1887 | // when enabled. See #29602. |
|
| 1888 | if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && |
|
| 1889 | strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { |
|
| 1890 | ||
| 1891 | $plupload_init['multi_selection'] = false; |
|
| 1892 | } |
|
| 1893 | ||
| 1894 | /** |
|
| 1895 | * Filters the default Plupload settings. |
|
| @@ 3016-3020 (lines=5) @@ | ||
| 3013 | ||
| 3014 | // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos |
|
| 3015 | // when enabled. See #29602. |
|
| 3016 | if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && |
|
| 3017 | strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { |
|
| 3018 | ||
| 3019 | $defaults['multi_selection'] = false; |
|
| 3020 | } |
|
| 3021 | ||
| 3022 | /** |
|
| 3023 | * Filters the Plupload default settings. |
|