From 817b932ed1c55eb9bc98328eb5758fd8d59e4d10 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 12 Apr 2012 00:16:37 +0000 Subject: [PATCH] Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410 git-svn-id: http://svn.automattic.com/wordpress/trunk@20449 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 19 +++++-------------- wp-admin/media-new.php | 4 ---- wp-admin/media.php | 2 +- wp-admin/menu.php | 3 +-- wp-admin/upload.php | 2 +- wp-includes/admin-bar.php | 2 +- wp-includes/functions.php | 23 +++++++++++++++++++++++ 7 files changed, 32 insertions(+), 23 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index f20fa895bf..7c30b75704 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -64,13 +64,7 @@ add_filter('media_upload_tabs', 'update_gallery_tab'); function the_media_upload_tabs() { global $redir_tab; $tabs = media_upload_tabs(); - - if ( wp_is_mobile() ) { - unset($tabs['type']); - $default = 'type_url'; - } else { - $default = 'type'; - } + $default = 'type'; if ( !empty($tabs) ) { echo "