Media: revert enabling of multi-file uploading for mobile devices. Currently only iOS Safari supports it but has a bug that prevents uploading of videos. Fixes #29602
Built from https://develop.svn.wordpress.org/trunk@29729 git-svn-id: http://core.svn.wordpress.org/trunk@29503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa0acbe3bb
commit
69e7171f41
|
@ -1780,6 +1780,12 @@ $plupload_init = array(
|
|||
'multipart_params' => $post_params,
|
||||
);
|
||||
|
||||
// Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos
|
||||
// when enabled. See #29602.
|
||||
if ( wp_is_mobile() ) {
|
||||
$plupload_init['multi_selection'] = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the default Plupload settings.
|
||||
*
|
||||
|
|
|
@ -2542,6 +2542,12 @@ function wp_plupload_default_settings() {
|
|||
),
|
||||
);
|
||||
|
||||
// Currently only iOS Safari supports multiple files uploading but has a bug that prevents uploading of videos
|
||||
// when enabled. See #29602.
|
||||
if ( wp_is_mobile() ) {
|
||||
$defaults['multi_selection'] = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the Plupload default settings.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue