| @@ 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 ) |
|
| @@ 1876-1880 (lines=5) @@ | ||
| 1873 | ||
| 1874 | // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos |
|
| 1875 | // when enabled. See #29602. |
|
| 1876 | if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && |
|
| 1877 | strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { |
|
| 1878 | ||
| 1879 | $plupload_init['multi_selection'] = false; |
|
| 1880 | } |
|
| 1881 | ||
| 1882 | /** |
|
| 1883 | * Filters the default Plupload settings. |
|
| @@ 2959-2963 (lines=5) @@ | ||
| 2956 | ||
| 2957 | // Currently only iOS Safari supports multiple files uploading but iOS 7.x has a bug that prevents uploading of videos |
|
| 2958 | // when enabled. See #29602. |
|
| 2959 | if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false && |
|
| 2960 | strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) { |
|
| 2961 | ||
| 2962 | $defaults['multi_selection'] = false; |
|
| 2963 | } |
|
| 2964 | ||
| 2965 | /** |
|
| 2966 | * Filters the Plupload default settings. |
|