Make WordPress Core


Ignore:
Timestamp:
02/26/2008 07:30:10 PM (16 years ago)
Author:
ryan
Message:

Media upload updates from andy. see #5911

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media-upload.php

    r6983 r7043  
    2020
    2121// upload type: image, video, file, ..?
    22 $type = @strval($_GET['type']);
     22if ( isset($_GET['tab']) )
     23    $tab = strval($_GET['tab']);
     24else
     25    $tab = apply_filters('media_upload_default_tab', 'computer');
    2326
    2427// let the action code decide how to handle the request
    25 do_action("media_upload_{$type}");
     28do_action("media_upload_$tab");
    2629
    2730?>
Note: See TracChangeset for help on using the changeset viewer.