Changeset 7092 for trunk/wp-admin/media-upload.php
- Timestamp:
- 02/28/2008 09:29:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/media-upload.php
r7043 r7092 20 20 21 21 // upload type: image, video, file, ..? 22 if ( isset($_GET['type']) ) 23 $type = strval($_GET['type']); 24 else 25 $type = apply_filters('media_upload_default_type', 'file'); 26 27 // tab: gallery, library, or type-specific 22 28 if ( isset($_GET['tab']) ) 23 29 $tab = strval($_GET['tab']); 24 30 else 25 $tab = apply_filters('media_upload_default_tab', ' computer');31 $tab = apply_filters('media_upload_default_tab', 'type'); 26 32 27 33 // let the action code decide how to handle the request 28 do_action("media_upload_$tab"); 34 if ( $tab == 'type' ) 35 do_action("media_upload_$type"); 36 else 37 do_action("media_upload_$tab"); 29 38 30 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.