Changeset 20449 for trunk/wp-admin/includes/media.php
- Timestamp:
- 04/12/2012 12:16:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r20417 r20449 65 65 global $redir_tab; 66 66 $tabs = media_upload_tabs(); 67 68 if ( wp_is_mobile() ) { 69 unset($tabs['type']); 70 $default = 'type_url'; 71 } else { 72 $default = 'type'; 73 } 67 $default = 'type'; 74 68 75 69 if ( !empty($tabs) ) { … … 599 593 } 600 594 601 if ( wp_is_mobile() ) 602 return wp_iframe( 'media_upload_type_url_form', 'image', $errors, $id ); 603 else 604 return wp_iframe( 'media_upload_type_form', 'image', $errors, $id ); 595 return wp_iframe( 'media_upload_type_form', 'image', $errors, $id ); 605 596 } 606 597 … … 1307 1298 global $type, $tab, $pagenow, $is_IE, $is_opera; 1308 1299 1309 if ( wp_is_mobile() ) 1300 if ( ! _device_can_upload() ) { 1301 echo '<p>' . __('The web browser on your device cannot be used to upload files. You may be able to use the <a href=" http://wordpress.org/extend/mobile/">native app for your device</a> instead.') . '</p>'; 1310 1302 return; 1303 } 1311 1304 1312 1305 $upload_action_url = admin_url('async-upload.php'); … … 1439 1432 */ 1440 1433 function media_upload_type_form($type = 'file', $errors = null, $id = null) { 1441 if ( wp_is_mobile() )1442 return;1443 1434 1444 1435 media_upload_header();
Note: See TracChangeset
for help on using the changeset viewer.